Forum Moderators: coopster
[MySQL CODE]
Date_format(Orderdate, '%y-%m') as period .... more statements
[/MySQL CODE]
How do I do this in MSSQL? The date is in this format in MSSQL DB.: 2003-11-30 00:00:00
**I have tried various things but my efforts are failing!
But now that you ask I realize I could do it in the select statement with convert().
CONVERT ( data_type [ ( length) ] , expression [ , style ] )
Here's some good articles:
[databasejournal.com...]
[winnetmag.com...]