Scripting > mrScriptBasic overview > mrScriptBasic language reference > Script constants > Date and time format constants
 
Date and time format constants
The following table defines the constants that are built into mrScriptBasic for defining date and time formats. You can use these constants anywhere in a script.
Constant
Value
Description
mr.GeneralDate
0
Display a date and/or time. For real numbers, display a date and time. If there is no fractional part, display only a date. If there is no integer part, display time only. Date and time display is determined by your system settings.
mr.LongDate
1
Display a date using the long date format specified in your computer's regional settings.
mr.ShortDate
2
Display a date using the short date format specified in your computer's regional settings.
mr.LongTime
3
Display a time using the long time format specified in your computer's regional settings.
mr.ShortTime
4
Display a time using the short time format specified in your computer's regional settings.
See also
Script constants