SQL Server Datetime To String Example
sqlserver datetime to string example :) select GETDATE() basedate,convert(varchar, GETDATE(), 1) basestring ,left(convert(varchar, GETDATE(), 1),2) month,right(left(convert(varchar, GETDATE(), 1),5),2) day ,right(convert(varchar, GETDATE(), 1),2) year select GETDATE() basedate,convert(varchar, GETDATE(), 8) basestring ,left(convert(varchar, GETDATE(), 8),2) hour,right(left(convert(varchar, GETDA..