Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Particular datetime format
Message
De
22/12/2008 07:05:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
21/12/2008 12:58:04
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web
Divers
Thread ID:
01369026
Message ID:
01369065
Vues:
10
>Hello, I'd like to extract from my SQL DB a datetime field in the format next below:
>
>dd/MM/yyyy HH:MM:SS (24hrs)
>
>How can i do this?

As others have already said it is a display format and you get a datetime from SQL server. Just use:
set date to dmy
set century on
set hours to 24
in your VFP code (if it's not VFP then other languages have similar formatting capabilities).
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
Répondre
Fil
Voir

Click here to load this message in the networking platform