wsturdev
asked on
Format Date and Time as yyyy-mm-dd hhmm
I am writing a SPROC. What is the syntax for converting the result of GetDate() into the format yyyy-mm-dd hhmm?
DECLARE @MyDateTime varchar(20)
@MyDateTime = GetDate()
DECLARE @MyDateTime varchar(20)
@MyDateTime = GetDate()
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.