Difference between revisions of "El DateStr"
Jump to navigation
Jump to search
m (Reverted edits by 176.8.90.7 (talk) to last revision by 194.84.116.138) |
|||
Line 1: | Line 1: | ||
− | Returns an 8-character numerical string corresponding to the specified date. The string is in the yyyyMMdd format, where yyyy is the four-digit year, MM is the month, and dd is the day of the month. | + | Returns an 8-character numerical string corresponding to the specified date. The string is in the ''yyyyMMdd'' format, where yyyy is the four-digit year, MM is the month, and dd is the day of the month. |
− | + | == Usage == | |
<syntaxhighlight>El_DateStr(dd, MM, yyyy)</syntaxhighlight> | <syntaxhighlight>El_DateStr(dd, MM, yyyy)</syntaxhighlight> | ||
− | Where: | + | Where: |
− | + | :'''dd''' - a numerical expression specifying the day of the month. | |
− | + | :'''MM''' - a numerical expression specifying the month. | |
− | + | :'''yyyy''' - a four-digit numerical expression specifying the year. | |
− | == | + | == Notes == |
− | + | * To have more control about the formatting of a date string, use [[FormatDate]]. | |
− | + | * Use [[StringToDate]] to convert a date string to a numerical date value. | |
− | + | == Example == | |
− | + | <syntaxhighlight>El_DateStr(02, 04, 2008)</syntaxhighlight> | |
+ | Will return the string "20080402", corresponding to the specified date of April 2nd, 2008. | ||
[[Category:Date and Time Routines]] | [[Category:Date and Time Routines]] |
Latest revision as of 13:02, 19 February 2012
Returns an 8-character numerical string corresponding to the specified date. The string is in the yyyyMMdd format, where yyyy is the four-digit year, MM is the month, and dd is the day of the month.
Usage
El_DateStr(dd, MM, yyyy)
Where:
- dd - a numerical expression specifying the day of the month.
- MM - a numerical expression specifying the month.
- yyyy - a four-digit numerical expression specifying the year.
Notes
- To have more control about the formatting of a date string, use FormatDate.
- Use StringToDate to convert a date string to a numerical date value.
Example
El_DateStr(02, 04, 2008)
Will return the string "20080402", corresponding to the specified date of April 2nd, 2008.