Harbour Reference Guide

 

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

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30