Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using date()
Message
From
02/01/2002 13:11:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
02/01/2002 13:02:16
Robert Ross
Onsite Computer Services
Benton, Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00599827
Message ID:
00599839
Views:
12
>I simply want to put the system date in a field in a table.
>The field IS DEFINETLY set up as a date data type.
>However, the table designer will not allow more than 8 characters for this type of field.
>I use:
> REPLACE dsjn.req_date WITH date()
>The code kicks back with a 'data type mismatch' error.
>
>I've tried 'SET CENTURY OFF' no, avail...any suggestions?
>
>Thanks in advance!
>Bob Ross ( A confused newbie )

Probably you will want to change the field type to "D" (date). You can't store date() (type date) into a character field without conversion. And I don't recommend, usually, using anything other than date type for date fields.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform