Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . Sample Reference - <b>date.prg</b> http://www.X-Hacker.org [<<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

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson