Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stuff a date into a datetime
Message
From
02/03/2006 11:36:56
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01100895
Message ID:
01100917
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>Have a Date datatype in a grid - date1. On the database the field is a datetime - datetime1. If the client enters a new Date in the grid, want to stuff that date into the datetime field. The client can enter a past or current date.
>
>
if ttod(datetime1) != date1
>   datetime1 = datetime()
>   ** now want to make the date portion of datetime1 = date1
>endif
Hi Brenda,

Are you looking for DToT() or something more complicated?
Previous
Reply
Map
View

Click here to load this message in the networking platform