System.GetDate |
|
|
|
System.GetDate |
|
|
|
|
||
OverviewExamples
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."
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.
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