Skip to content

changing the Date format.

2 messages · rajclinasia, Patrick Connolly

#
Hi everyone,

i have a data frame called 'sample'. in that 'sample' data frame variable
called 'starts' is there like this

starts
37987
37988
37989
37990 
37991

now i want change that variable into 'yyyy-mm-dd' format. can any body help
in this aspect.

Thanks in Advance.
#
On Wed, 26-Aug-2009 at 03:48AM -0700, rajclinasia wrote:
|> 
|> Hi everyone,
|> 
|> i have a data frame called 'sample'. in that 'sample' data frame variable
|> called 'starts' is there like this
|> 
|> starts
|> 37987
|> 37988
|> 37989
|> 37990 
|> 37991
|> 
|> now i want change that variable into 'yyyy-mm-dd' format. can any body help
|> in this aspect.

Check out the as.Date function.
?as.Date

HTH