Difference between revisions of "SET DATE"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
 
==Purpose==
 
==Purpose==
 
Determine input and output date formats
 
Determine input and output date formats
 
  
 
==Syntax==
 
==Syntax==
Line 8: Line 6:
  
 
==See Also==
 
==See Also==
[[CTOD()]], [[DATE()]], [[DMY()]], [[DTOC()]], [[DTOS()]], [[DTOV()]], [[MDY()]], [[SET CENTURY]], [[SET EPOCH]], [[SET MARK]], [[SET VAXTIME]], [[STOD()]], [[VTOD()]]
+
[[CTOD()]], [[DATE()]], [[DMY()]], [[DTOC()]], [[DTOS()]], [[DTOV()]], [[MDY()]], [[SET CENTURY]], [[SET EPOCH]], [[SET MARK]], [[STOD()]], [[VTOD()]]
  
 
==Description==
 
==Description==
 
The SET DATE command specifies the input and output format for dates.  The following summarizes the available date formats.
 
The SET DATE command specifies the input and output format for dates.  The following summarizes the available date formats.
 
  
 
{| class="wikitable"
 
{| class="wikitable"
!Date||Format
+
!width=50%|Date||Format
 
|-
 
|-
 
|AMERICAN (or MDY)||mm/dd/yy
 
|AMERICAN (or MDY)||mm/dd/yy
Line 34: Line 31:
 
|-
 
|-
 
|}
 
|}
 
  
 
If SET CENTURY is ON, then the years will be formatted with four digits, i.e. yyyy.  The SET MARK command may be used to specify an alternate character to separate the parts of a date.
 
If SET CENTURY is ON, then the years will be formatted with four digits, i.e. yyyy.  The SET MARK command may be used to specify an alternate character to separate the parts of a date.
 
  
 
==Example==
 
==Example==
Line 48: Line 43:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]

Revision as of 11:52, 9 February 2012

Purpose

Determine input and output date formats

Syntax

SET DATE [TO] AMERICAN | ANSI | BRITISH | DMY | FRENCH | GERMAN | ISO | ITALIAN | JAPAN | MDY | USA | YMD

See Also

CTOD(), DATE(), DMY(), DTOC(), DTOS(), DTOV(), MDY(), SET CENTURY, SET EPOCH, SET MARK, STOD(), VTOD()

Description

The SET DATE command specifies the input and output format for dates. The following summarizes the available date formats.

Date Format
AMERICAN (or MDY) mm/dd/yy
ANSI yy.mm.dd
BRITISH or FRENCH or (DMY) dd/mm/yy
GERMAN dd.mm.yy
ITALIAN dd-mm-yy
JAPAN or (YMD) yy/mm/dd
USA mm-dd-yy
ISO yyyy-mm-dd

If SET CENTURY is ON, then the years will be formatted with four digits, i.e. yyyy. The SET MARK command may be used to specify an alternate character to separate the parts of a date.

Example

set date german
use patrons index dates
seek ctod("01.01.98")
set century on
seek ctod("01.01.1998")