nmarano
asked on
Convert Date
Experts-
I am using the following query to grab a column in my db and convert the date. I would like the full month to display if possible. Currently, what I have is only displaying three characters in the month along with the day and year. Any help would be appreciated
SELECT CONVERT(VARCHAR(12), nextBillingDate_c, 107) AS [Month DD, YYYY]
FROM members
Thanks
I am using the following query to grab a column in my db and convert the date. I would like the full month to display if possible. Currently, what I have is only displaying three characters in the month along with the day and year. Any help would be appreciated
SELECT CONVERT(VARCHAR(12), nextBillingDate_c, 107) AS [Month DD, YYYY]
FROM members
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Awesome! Thank you very much!
or to get it with the 2-digit day
SELECT datename(MM,getdate()) + ' ' + SUBSTRING(CONVERT(VARCHAR( 8), GETDATE(), 3), 4, 2) +', ' + Convert(varchar,datepart(y ear,getdat e()))
SELECT datename(MM,getdate()) + ' ' + SUBSTRING(CONVERT(VARCHAR(
select datename(MM,getdate()) +' ' + Convert(varchar,datepart(d