Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Particular datetime format
Message
From
22/12/2008 07:05:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/12/2008 12:58:04
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01369026
Message ID:
01369065
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform