Grocer Function
NAME
date2num - transforms a date into a number
CALLING SEQUENCE
num=date2num(dat)
PARAMETERS
Input
Output
-
num = the numerical representation of the dates
DESCRIPTION
Transforms a date into its numerical representation
EXAMPLE
1) d=date2num('1985q4')
2) d=date2num ('2002a')
3) d=date2num ('97m12')
4) d=date2num ('1985f52q4')
These examples return the numerical representation of an annual, a quarterly, a monthly and a weekly date.
AUTHOR
Eric Dubois 2002