Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatting DateTime as Date
Message
 
À
08/10/2008 14:51:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2008 Server
Database:
Visual FoxPro
Divers
Thread ID:
01353661
Message ID:
01353674
Vues:
19
>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform