The below is returning 201402011 but I now need it to return date time:
LEFT(
CONVERT(CHAR(8),DATEADD(MM,-1,GETDATE()),112),6)+'011'
How should I edit?
The below is returning 201402011 but I now need it to return date time:
LEFT(
CONVERT(CHAR(8),DATEADD(MM,-1,GETDATE()),112),6)+'011'
How should I edit?