Learn R Programming

RSurvey (version 0.9.3)

FormatDateTime: GUI: Build Date-Time String Formats

Description

A graphical user interface (GUI) for converting between character representations and objects of class POSIXt or Date.

Usage

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

Arguments

sample

POSIXt or Date. Sample date-time

fmt

character. Conversion specification format

parent

tkwin. GUI parent window

Value

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

See Also

strptime, format

Examples

Run this code
# NOT RUN {
  new.fmt <- FormatDateTime(fmt = "%A %B %d %I:%M %p")
  FormatDateTime(Sys.Date())
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab