Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Guys,
shouldnt a num of date always be a flat int? ie 44773 and not 44773.999999988?
LET vPACEND = num(if(num(day(Today())) <25 , Date(MonthEnd(AddMonths(Today(),-1))) , Date(MonthEnd(Today()))));
the value of vPACEND in a text box ie DATE(vPACEND ) is 44773.999999988
cheers
hi
it is because you are using monthend()
AFAIK, it will gave date on timestamp format. and because of that you are getting decimal value.
by default num() only convert the value into numeric format as it is, if want to rounded value then use num(field,'#0') or use floor() to round it.
Regards,
Prashant Sangle
hi
it is because you are using monthend()
AFAIK, it will gave date on timestamp format. and because of that you are getting decimal value.
by default num() only convert the value into numeric format as it is, if want to rounded value then use num(field,'#0') or use floor() to round it.
Regards,
Prashant Sangle
Brilliant, thanks for help