Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql convert format for MM/YYYY

DECLARE @myDate DATETIME = '2012-04-20 05:54:59'
SELECT FORMAT(@myDate, 'MM-yyyy')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #convert #format
ADD COMMENT
Topic
Name
1+3 =