Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi all..I have a scenario where i read data from the excel spreadsheet which has a date column of format(MMM YYYY), but it is interpreting the data present in that column as an integer..my dates are like [42644.0] for oct 2016, [42614.0] for sept 2016 and so on..I tried everything but nothing worked for me..I guess QV is taking it as text.. In This case how do i proceed as to get the desired output in the MMM YYYY format..please help!!
Date#(fieldname,'MMM YYYY') as fieldname
Or
Date(fieldname,'MMM YYYY') as fieldname
Use the above during load
The underlying value in Excel is the date number, so all you need in QV is to format it as a date:
Date(FieldName) as Date
guys thanks for help..but didn't work for me..I've tried like almost everything..can't fix it..QV is reading it as text..num(), num#(), alt(), date() or date#() none are working..is there any other way out to fix this?
go to Number Tab >> Select Date >> in format expression type MMM YYYY
or post the app the demonstrates the problem
sample app,pls?
or try this way :
Date(AddYears(Date(Date#('19'&Right(yrdatefield,6),'YYYYMMDD'),'DD/MM/YYYY')
,100*Left(yrdatefield,1)),'DD/MM/YYYY') As NewDatefield;
Goto Settings--> Document Properties-->Number tab--> Select the date field and change the number format settings to Date. (Change the format pattern to MMM/YYYY)
Thanks,
Sangeetha