Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display a date from a datetime?
Message
From
01/12/2004 10:26:25
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00965996
Message ID:
00966087
Views:
19
Thanks for this wonderfull code!

My pleasure! I hope that it works for you.

Is anything like this is KiloFox (which I have at home)?

There are some calendar controls as well as a date textbox class (See chapter 4), but nothing to get rid of the time portion of a DateTime value.

If you did not have to update the values, you could simply set the textbox's ControlSource to something like this:
( TTOD( MyAlias.MyDateTimeField ) )
The problem with this is that it makes the control ReadOnly. The only way you can edit the field and still display only the date portion is to use the methodology I have outlined - unbind it behind the scenes and handle the updates manually.
Previous
Reply
Map
View

Click here to load this message in the networking platform