Grocer Function
NAME
date2fq - finds the frequency associated to a date
CALLING SEQUENCE
fq=date2fq(dat)
PARAMETERS
Input
dat = a date string
Output
fq = an integer (the frequency of the date)
DESCRIPTION
Finds the frequency associated to a date.
EXAMPLE
1) fq=date2fq('1985q4')
2) fq=date2fq('2002a')
3) fq=date2fq('97m12')
4) fq=date2fq('1985f52q4')
These examples return the frequencies of annual, quarterly, monthly and weekly dates (note how the weekly date has been represented).
AUTHOR
Eric Dubois 2002