mondate (version 0.10.01.02)

displayFormat-methods: Methods to Access 'displayFormat' Property

Description

Methods to get and set the displayFormat value of a mondate.

Usage

"displayFormat"(x) "displayFormat"(x) "displayFormat"(x)<-value

Arguments

x
a mondate.
value
For the "get" method, a character string indicating the date format with which to display the mondate. Choices are currently
  1. "%m/%d/%Y"
  2. "%m-%d-%Y"
  3. "%Y-%m-%d"
  4. "%Y/%m/%d"

If x is not a mondate, the "get" value returned is NULL.

Examples

Run this code
x<-mondate("2010-6-30")            # The middle of 2010
displayFormat(x)                   # "%Y-%m-%d"
displayFormat(x) <- "%m/%d/%Y"
x                                  # x now displays as 06/30/2010

Run the code above in your browser using DataLab