Learn R Programming

RSurvey (version 0.7-5)

FormatDateTime: Build Date-Time String Formats

Description

A GUI for converting between character representations and objects of class POSIXt, calendar dates and times.

Usage

FormatDateTime(sample = as.POSIXct("1991-08-25 20:57:08"),
               fmt = NULL, parent = NULL)

Arguments

sample
POSIXct or POSIXlt; a calendar date and time object.
fmt
character; the conversion specification format for date-time values.
parent
tkwin; the GUI parent window.

Value

  • Returns a character string representing the formatted date-time value.

See Also

strptime, format

Examples

Run this code
FormatDateTime(fmt = "%d/%m/%Y")

Run the code above in your browser using DataLab