Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Oracle datetime field
Message
 
 
À
20/03/1998 12:41:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00086049
Message ID:
00086052
Vues:
15
>i need a way to show only the date on a datatime field for the user update. thanks...

When you create the SQL to Oracle use the TO_CHAR function:

Select ..., to_char(date_field, 'MM/DD/YYYY') as 'Date Field' ...

The 2nd parameter of the to_char can be any valid date format as long as you use M for month, D for day, Y for Year. e.g., YY-MM, YY.MM.DD, YYYY.MM.DD, etc., all should work. A good Oracle reference book should give you better ideas on what you can do for to_char formatting of returned rows for numeric, date, etc., fields.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform