Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetDate() showing seconds

Status
Not open for further replies.

SarahG

Programmer
May 23, 2002
111
IE
This is probably a very basic question, but how do you make getdate() display seconds as mine shows:

Jan 10 2003 3:47PM

Thanks in advance
 
How are you selecting it?

If I do select getdate() in QA
I return 2003-01-10 09:49:39.223. Are youy calling this from an app or just in QA
 
Yes I'm using QA, just straight
select getdate()

Actually in the meantime, I've found the convert function returns what I want, if I run

select convert(datetime,getdate(),108)

But I'd be interested in knowing why my QA defaults to my format and yours to another.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top