Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

SQL Server 2016 Date as a string when exported to CSV

$
0
0

Can anyone help convert a Date in SQL Server 2016 to a string format, 'January 2024'? When I use the various methods below, the data in the CSV file still shows 01/0/2024.

FORMAT(COMPLETED_DATE, 'MMMM yyyy'))

or

datename(m,COMPLETED_DATE)+''+cast(datepart(yyyy,COMPLETED_DATE) as varchar)

Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>