I have a table, Invoice that has a column InvoiceDate, type date. I need to create a computed field that is based on the month number and the year number of the InvoiceDate but it needs to be in the format MMYY.
For eample, if my InvoiceDate is 2014-07-14, I need the result to be 0714.
I've tried all sorts of combinations using the Month and Year functions, Cast and Substring but cannot acheive my requirement.
Can anyone please offer some advise or point me in the right direction?
Many thanks
Steve
For eample, if my InvoiceDate is 2014-07-14, I need the result to be 0714.
I've tried all sorts of combinations using the Month and Year functions, Cast and Substring but cannot acheive my requirement.
Can anyone please offer some advise or point me in the right direction?
Many thanks
Steve