Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatting DateTime as Date
Message
 
To
08/10/2008 14:51:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01353661
Message ID:
01353674
Views:
18
>>>I have a cursor with a couple of DateTime fields
>>>
>>>There is a grid associated with this cursor. We don't edit the grid directly so there are also some textboxes used to edit the cursor's data.
>>>
>>>How can I format the column and the textbox so that only the date portion is displayed?
>>>
>>>Thanks..........Rich
>>
>>Then why you use DateTime?
>1. Because the cursor comes from a MySql table which has the field defined as DateTime
>2. Just for general information
>3. Because I'm stubborn

ROFL, who isn't?
If you use Remote View or CursorAdapter you could map these DateTime fields to be Date.
In CA you should use CursorSchema, in remote view you could map the type in View designer.
That way you can't re-program your date retrieval :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform