Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
From SQL I am loading data like this :
Year(INVOICEDATE) as Year,
Month(INVOICEDATE) as Month,
Day(INVOICEDATE) as Day,
But i need load field like this : YYYY-MM
I was try :Year(INVOICEDATE)&'-'& Month(INVOICEDATE) as YearMonth,
But result is 0
Is it posable???
hi,
this is the sql command for getting YYYY-MM from current time : convert(varchar(7), getdate(), 126)
what is the Invoice date format?
you can try this
Date(monthstart(Date), 'YYYY-MM') as MonthYear
YYYY.MM.DD hh:mm:ss
try
Date(InDate,'YYYY-MM') as YearMonth
I got error:
'Date' is not a recognized built-in function name.
used invoice date only right?
My option is this?
Date(Date#(INVOICEDATE,'YYYY.MM.DD hh:mm:ss'), 'YYYY-MM')
Date(INVOICEDATE,'YYYY-MM') as YearMonth
Error: 'Date#' is not a recognized built-in function name