Difference between revisions of "EncodeDate"
Jump to navigation
Jump to search
m (Reverted edits by 176.8.90.7 (talk) to last revision by 194.84.116.138) |
|||
Line 3: | Line 3: | ||
The integer portion of the DateTime value indicates the number of days that have elapsed since January 1st, 1900, and the fractional portion of the DateTime value indicates the fraction of the day that has passed since midnight. | The integer portion of the DateTime value indicates the number of days that have elapsed since January 1st, 1900, and the fractional portion of the DateTime value indicates the fraction of the day that has passed since midnight. | ||
− | + | == Usage == | |
<syntaxhighlight>EncodeDate(yy,MM,dd)</syntaxhighlight> | <syntaxhighlight>EncodeDate(yy,MM,dd)</syntaxhighlight> | ||
− | Where: | + | Where: |
− | + | ||
− | + | :'''yy''' - a numerical expression specifying the two-digit year. | |
− | + | :'''MM''' - a numerical expression specifying the month. | |
− | + | :'''dd''' - a numerical expression specifying the day of the month. | |
+ | |||
+ | == Notes == | ||
+ | * Use [[EncodeTime]] to return the fractional portion of a double-precision decimal DateTime value corresponding to a specified time. | ||
− | + | == Example == | |
− | <syntaxhighlight>EncodeDate(08,01,01) | + | <syntaxhighlight>EncodeDate(08, 01, 01)</syntaxhighlight> |
− | of January 1st, 2008 | + | Will return a value of 39448.00000000, corresponding to the specified date of January 1st, 2008. |
[[Category:Date and Time Routines]] | [[Category:Date and Time Routines]] |
Revision as of 13:06, 19 February 2012
Returns the integer portion of a double-precision decimal DateTime value corresponding to the specified date.
The integer portion of the DateTime value indicates the number of days that have elapsed since January 1st, 1900, and the fractional portion of the DateTime value indicates the fraction of the day that has passed since midnight.
Usage
EncodeDate(yy,MM,dd)
Where:
- yy - a numerical expression specifying the two-digit year.
- MM - a numerical expression specifying the month.
- dd - a numerical expression specifying the day of the month.
Notes
- Use EncodeTime to return the fractional portion of a double-precision decimal DateTime value corresponding to a specified time.
Example
EncodeDate(08, 01, 01)
Will return a value of 39448.00000000, corresponding to the specified date of January 1st, 2008.