Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi all
i have a field with this form 6/1/2016 (jun 1-2016) i need to transform it to a number as 42522
hope u can help thanks
LOAD Value
,date#(Value, 'DD/MM/YYYY') as Date
,num(date#(Value, 'DD/MM/YYYY')) as Date_num
INLINE [
Value
6/1/2016
];
Result:
Hi Mario,
Try with this expression: =Num#(6/1/2016, '##,##')
Regards
Miguel del Valle
Set below in your script..
SET DateFormat='M/D/YYYY';
Now use
Num(YourDateField) as DateFieldinNum
in script.
or
=Num(YourDateField) in text box or chart
You can try in either load script or expression like below,
Num(Date#(DateField,'M/D/YYYY'))
try this
Num(Date#(DateField,'M/D/YYYY'),'M/D/YYYY') AS newdate
You can also try this,
Month:
LOAD * INLINE [
Month_Date
6/1/2016
];
LOAD *,
Num(Month_Date) as @_Month_Date Resident Month
Hi,
try
=NUM(Date#(FieldName,'M/D/YYYY'), ##,##0)