|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Time format hh:mm:ss pmHi,
I want time 'hh:mm:ss AM/PM' like this format. Can u tell what are the ways to except substring using. rgds, Soura There is no Convert pattern for this format, so you need to use
SUBSTRING. Perhaps you are able to write a function which will put out a well formatted string as you want it by inputting a datetime. HTH, Jens Suessmeyer. SELECT REVERSE(LEFT(STUFF(REVERSE(
CONVERT(varchar,getdate(),9)),3,4,SPACE(0)),11)) Show quote "SouRa" <So***@discussions.microsoft.com> wrote in message news:8C4E68EE-410D-4521-8D5B-4E650F5C9A10@microsoft.com... > Hi, > > I want time 'hh:mm:ss AM/PM' like this format. > > Can u tell what are the ways to except substring using. > > rgds, > Soura |
|||||||||||||||||||||||