Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to display only the date from a date time field
Message
De
30/04/2004 10:08:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
29/04/2004 19:01:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00899542
Message ID:
00899749
Vues:
11
>I am getting data into the form with an updatable cursor from Oracle. I want to set the control source to a Date/Time field, but I only want to display the date part not the time. I want the user to be able to update the date, but never see the time.
>
>How do I display only the date part of a datetime field in a databound control?
>
>Thank you,
>
>Cicilia

If you're using an RV then set datatype to date in properties (design) or with dbsetprop().
If you're using SPT then no way up AFAIK to do it directly (in VFP8 CA lets you to do that with cursorschema). Indirectly use another textbox control with value initialized to {}. Update it as record changes with ttod(), and update source as its value is edited.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform