Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
in my script i generate a calendar:
Load
Date(Date#('1/1/2008','D/M/YYYY')+RowNo()-1) as Date_,
Year(Date#('1/1/2008','D/M/YYYY')+RowNo()-1) & Num(Month(Date#('1/1/2008','D/M/YYYY')+RowNo()-1), '00') as M_,
WeekDay(Date#('1/1/2008','D/M/YYYY')+RowNo()-1) as WeekDay_
AutoGenerate
Interval(Date#('31/12/2015','D/M/YYYY')-Date#('1/1/2008','D/M/YYYY'),'D');
The problem is that i need:
Year(Date#('1/1/2008','D/M/YYYY')+RowNo()-1) & Num(Month(Date#('1/1/2008','D/M/YYYY')+RowNo()-1), '00') as M_,
to be in a real date format YYYYMM instead of a concatenated number.
Can someone help me formatting this ?
Thanks a lot!
Yes, one ')' too many:
=Date(Date#('1/1/2008','D/M/YYYY')+RowNo()-1,'YYYYMM') as M_,
Maybe like
Date(Date#('1/1/2008','D/M/YYYY')+RowNo()-1),'YYYYMM') as M_,
Something seems to be not right with the ) after the 'YYYYmMM'
Hi,
Try with this
Date((Date#('1/1/2008','D/M/YYYY')+RowNo()-1),'YYYYMM') as M_
instead of
Year(Date#('1/1/2008','D/M/YYYY')+RowNo()-1) & Num(Month(Date#('1/1/2008','D/M/YYYY')+RowNo()-1), '00') as M_,
Celambarasan
Yes, one ')' too many:
=Date(Date#('1/1/2008','D/M/YYYY')+RowNo()-1,'YYYYMM') as M_,