MSI Factory 2.3

System.GetDate

System.GetDate

This is the first topic This is the last topic  

System.GetDate

This is the first topic This is the last topic  

OverviewExamples

string System.GetDate (

number DateType )

Example 1

current_date_sortable = System.GetDate(2);   -- ISO date format sorts nicely

Get's the current date in ISO format (YYYY-MM-DD) and stores it in the variable "current_date_sortable."

Example 2

days_since_Jan_15_2003 = System.GetDate(3)-2452655;    -- 2452655 is the Julian date for Jan 15, 2003

Subtracts the Julian date for Jan 15, 2003 from the current Julian date and stores the result in the variable "days_since_Jan_15_2003". The Julian date format is perfect for date comparisons.

Example 3

nWeekday = System.GetDate(7);

Returns the current day of the week (1-7) in the variable "nWeekday."

See also: Related Actions


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