Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need to convert a date field into Numeric.
Num(Date ( 2014/11/12 , 'YYYYMMDD' ) )
output expecting:20141112
The num function giving me the result but not the way I was expecting.Any help on this would be great.
If you really want the *numeric* value to be 20141112, then I think it would be done like this:
=num#(Date(Date#('2014/11/12','YYYY/MM/DD') ,'YYYYMMDD'),'0')
-Rob
Try something like this
Num(Date# ( '2014/11/12' , 'YYYY/MM/DD' ) )
Or maybe even this :
date ( (Date# ( '2014/11/12' , 'YYYY/MM/DD' ), 'YYYYMMDD' )
Hi,
see this:
Num(Date#(Field, 'MM/DD/YYYY')) AS NumericDate
Regards
André Gomes
Try in place of the NUM with Date#
=Date (Date#('2014/11/12' , 'YYYY/MM/DD' ) ,'YYYYMMDD')
Regards
Anand
Try this
=Date ( Floor(Date# ( '2014/11/12' , 'YYYY/MM/DD' )), 'YYYYMMDD' )
Or you can try
=Date(Num(Date# ( '2014/11/12' , 'YYYY/MM/DD' ) ),'YYYYMMDD')
Regards
Anand
Hi,
This should work
=Date(Date#('2014/11/12','YYYY/MM/DD') ,'YYYYMMDD')
Regards
ASHFAQ
If you really want the *numeric* value to be 20141112, then I think it would be done like this:
=num#(Date(Date#('2014/11/12','YYYY/MM/DD') ,'YYYYMMDD'),'0')
-Rob
Thanks Rob.It is always a pleasure to see you here.Yes I wanted to have a numeric value because at the end I am going to comapre this date converted numeric vaule with another Numeric field.Thanks again for your help.