Methods to Access 'displayFormat' Property

Description

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

Usage

1
2
3
4
5
6
## S4 method for signature 'mondate'
displayFormat(x)
## S4 method for signature 'ANY'
displayFormat(x)
## S4 replacement method for signature 'mondate'
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.

Note

The mondateDisplayFormat versions have been deprecated.

Examples

1
2
3
4
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