SET DATE

Assings a date format or chooses a predefined date data set.

Syntax

SET DATE FORMAT [TO] <cFormat>
SET DATE [TO] [ ANSI / BRITISH / FRENCH / GERMAN / ITALIAN / JAPAN
/ USA / AMERICAN]

Arguments

<cFormat> Keyword for date format

Description

This command sets the date format for function display purposes. If specified,<cFormat> may be a customized date format in which the letters d,m and y may be used to desing a date format.The default is an AMERICAN date format;specifying no parameters will set the date format to AMERICAN.Below is a table of the varius predefined dates formats.

SyntaxDate Format
ANSIyy.mm.dd
BRITISHdd/mm/yy
FRENCHdd/mm/yy
GERMANdd.mm.yy
ITALIANdd-mm-yy
JAPANyy.mm.dd
USAmm-dd-yy
AMERICANmm/dd/yy
Examples
      SET DATE JAPAN
      ? DATE()
      SET DATE GERMAN
      ? Date()
Tests
      See tests/dates.prg
Status

Ready

Compliance

This command is Ca-Clipper compliant

See Also