![]() |
VOOZH | about |
as.Date() function in R Language is used to convert a string into date format.
Syntax: as.Date(x, format) Parameters: x: string variable format: Format in which string is declared(%m/%d/%y)Example 1: Output:
[1] "1992-02-27"Example 2: Output:
[1] "1992-02-27" "1992-02-27" "1992-01-14" "1992-02-28" "1992-02-01"