Difference between revisions of "MIST getDateString"
From DCS World Wiki - Hoggitworld.com
(Created page with "{{Mission Scripting |fName= mist.getDateString |vNum = Mist 3.7 |desc= Returns a string of the date. The boolean mString defines if the month name is used in the string in...") |
(No difference)
|
Latest revision as of 08:56, 13 April 2018
mist.getDateString
Added with: Mist 3.7 |
Description |
Returns a string of the date. The boolean mString defines if the month name is used in the string instead of the month digit. (false/nil for 3, true for 'March'). The boolean order defines if the date is presented in the date format mm/dd/yy or dd/mm/yy. time is defined in seconds, if time is not passed the function will use the current time of the mission, thus return the current date. |
Syntax |
string mist.getDateString( boolean mString ,boolean order ,number time ) |
Valid Input Values: |
93600 |
Return value: |
string |
Return example: |
7.4.2011 |
Usage Examples: |
The following will display the date the way America does it.
local theDate = mist.getDateString(true, true) July 4 2011 |
Notes: |
Related Functions |
tostringMGRS, tostringLL, tostringBR, getMGRSString, getLLString, getBRString, getLeadingPos, getLeadingMGRSString, getLeadingLLString, getLeadingBRString, getMilString, getClockString, getDateString, stringMatch, stringCondense |