S
Saimvp
Hi and Hello.
Good Day.
I have a problem in retrieving time in database. I have Table name "SAMPLE"
and have field name "DATES"
DATES
-------------------------------------|
5/9/2008 1:48:06 PM |
--------------------------------------
* If I will retrive only a date my select command is:
Select convert(nvarchar,Dates,101) as Dates from Sample
OUTPUT: Only the Date 5/9/2008.
My problem is what is the select command to retrieve only the time like the
above data.
I want the output only like this: 1:48:06 PM
Thank you in advance.
Good Day.
I have a problem in retrieving time in database. I have Table name "SAMPLE"
and have field name "DATES"
DATES
-------------------------------------|
5/9/2008 1:48:06 PM |
--------------------------------------
* If I will retrive only a date my select command is:
Select convert(nvarchar,Dates,101) as Dates from Sample
OUTPUT: Only the Date 5/9/2008.
My problem is what is the select command to retrieve only the time like the
above data.
I want the output only like this: 1:48:06 PM
Thank you in advance.