DateConversion was used to read and output the date variable with your preferred format.
Usage
DateConversion(DateVar,DateIn,DateOut)
Arguments
DateVar
Specify your date variable.
DateIn
Specify the date format for your original variable,e.g.%m/%d/%Y.
DateOut
Specify the date format that you hope to output,e.g.%d/%m/%Y.
Details
DateConversion is an easy function to convert a date variable between
different formats,which is very useful for your manipulation on a dataset with
date variables without time inside.
Value
DateConversion returns the date format that you expected directly.
Spector P.Data Manipulation with R.,Springer Science+Business Media,LLC.
2008.(Chapter4:Dates.)
See Also
as.POSIX* for Date-time Conversion Functions
#as.Date,Sys.Date,POSIXct,POSIXlt
#Dates for dates without times.
#strptime for conversion to and from character representations.
#Sys.time for clock time as a POSIXct object.
#difftime for time intervals.
#cut.POSIXt, seq.POSIXt, round.POSIXt and trunc.POSIXt for methods for these classes.
#weekdays.POSIXt for convenience extraction functions