I am needing to convert a date/time stamp via SQL to the following format: April 4, 2016
Using
SELECT
DATENAME(MM, GETDATE()) +
RIGHT(CONVERT(VARCHAR(12), GETDATE(), 107), 9) AS [PaymentDate]
gets me almost what I need, however, it puts a leading 0 on the day, leaving me with:
April 04, 2016
How can I get rid of that leading 0 on the day?
答案 0 :(得分:2)
答案 1 :(得分:0)