t-sql convert varchar to date code example
Example 1: sql server convert string to date
Cast( '2011-07-07' as date ) as convertedDate
Example 2: convert money to varchar sql server
SELECT convert(varchar(30), moneyfield, 1)
Cast( '2011-07-07' as date ) as convertedDate
SELECT convert(varchar(30), moneyfield, 1)