MMYY + oconv?
Posted: Mon Mar 03, 2008 1:30 pm
I have a job that extracts a monthly table. The table has the 2 digit month and year format at the end. this is what I've been using
It worked normally........until we rolled over to January. This bit of code doesn't use '0' as part of the month. ie. 108 instead of what I need '0108'.
Any suggestions?
Code: Select all
If ReportDate = 0 Then
ReportDate = CONVERT("/","",OConv(@DATE - 7, "D/MY[Z,2]"))
End
Any suggestions?