how to get the system date or time in any format through SQL?Hi there,
think it should be
select getdate()
Carsten|||To get it to a different format, use the CAST or CONVERT functions.
blindman|||Originally posted by blindman
To get it to a different format, use the CAST or CONVERT functions.
blindman
Or
DATENAME ( datepart , date ), DATEPART ( datepart , date ) ;)|||Originally posted by snail
Or
DATENAME ( datepart , date ), DATEPART ( datepart , date ) ;)
Or select GETUTCDATE() - Greenwich Mean Time.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment