[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Date.prg
 Date manipulation functions
--------------------------------------------------------------------------------

     Mdy( <dDate> ) --> cDate

     Convert a date to a string in the format month dd, yyyy.

     Dmy( <dDate> ) --> cDate

     Convert a date to string formatted as dd month yyyy.

     DateAsAge( <dDate> ) --> nAge

     Convert a date of birth to an age in years.

     AddMonth( <dDate>, <nMonths> ) --> dNewDate

     Calculate a new date by adding a number of months to a given date.

     DateAsArray( dDate ) --> aDate

     Convert a date to an array of year, month, and day.

     ArrayAsDate( aDate ) --> dDate

     Convert an array of year, month, and day to a date value.

     DateIsLeap( <dDate> ) --> lLeap

     Determine if the year of a supplied date is a leap year.

     NtoD( <nMonth>, <nDay>, <nYear> ) --> dNew

     Convert a date passed as separate numeric parameters to a date value.


See Also: Time.prg
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson