Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Time format only ???
Message
 
 
To
10/10/2003 03:24:05
Budi Irawan
Berlian Laju Tanker
Jakarta, Indonesia
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00837279
Message ID:
00837337
Views:
31
You can use CONVERT() function for special conversion of datetime values to the charcter data type.
SELECT CONVERT(varchar(12), dt, 101) AS justdate, 
		CONVERT(varchar(12), dt, 108) AS justtime
>dear all,
>
>
>i had webform which execute a sql statement that contains date_attendance field (eg 9/14/2002 1:30 PM)
>what if i want to show just the time format only or the date only (eg 1:30 pm).
>
>kindly help,
>
>TIA
>
>Budi
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform