drosenkranz
Programmer
Hello,
I'm having trouble with date formats in a VFP 7.0 report. I'm getting 2 digit years but I want 4 digit years. The database's date fields have input masks (mm/dd/yyyy) already and the dates are stored and displayed on forms with 4 digit years..
I have SET CENTURY ON and
SET STRICTDATE TO 1
Things like my Date of Birth (DOB) field appear on the form as 4 digit years but only two digit years appear for the same field in my reports.
DTOC(DATE()) in my report footer prints the date 11/05/03 while
?DTOC(DATE()) from the command window returns 11/05/2003
How do I get four digit years in my report.
Thanks,
ave
The 2nd mouse gets the cheese.
I'm having trouble with date formats in a VFP 7.0 report. I'm getting 2 digit years but I want 4 digit years. The database's date fields have input masks (mm/dd/yyyy) already and the dates are stored and displayed on forms with 4 digit years..
I have SET CENTURY ON and
SET STRICTDATE TO 1
Things like my Date of Birth (DOB) field appear on the form as 4 digit years but only two digit years appear for the same field in my reports.
DTOC(DATE()) in my report footer prints the date 11/05/03 while
?DTOC(DATE()) from the command window returns 11/05/2003
How do I get four digit years in my report.
Thanks,
ave
The 2nd mouse gets the cheese.