MSI Factory 2.3

System.GetDate

System.GetDate

Previous topic Next topic  

System.GetDate

Previous topic Next topic  

OverviewExamples

string System.GetDate (

number DateType )

Description

Gets the current date in a variety of formats.

Parameters

DateType

(number) Return the date in the format:

CONSTANT

VALUE

DESCRIPTION

DATE_FMT_US

0

North American (MM/DD/YYYY)

DATE_FMT_EUROPE

1

European (DD/MM/YYYY)

DATE_FMT_ISO

2

ISO Date (YYYY-MM-DD)

DATE_FMT_JULIAN

3

Julian Date (an integer value representing the number of days since midnight on January 1, 4713 B.C.)

DATE_FMT_MONTH

4

Month (MM)

DATE_FMT_DAY

5

Day (DD)

DATE_FMT_YEAR

6

Year (YYYY)

DATE_FMT_DAYOFWEEK

7

Day of the week (1-7)

Returns

(string) The date in the format specified by DateType. If an error occurs, a blank string "" is returned. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us