Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time format only ???
Message
 
 
À
10/10/2003 03:24:05
Budi Irawan
Berlian Laju Tanker
Jakarta, Indonésie
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00837279
Message ID:
00837337
Vues:
30
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform