saenzh
1st October 2019, 01:34
Hi,

I'm new to LN programming and I'm trying to default today's date ten days in the past. I'm a little lost so any help is welcome.

My field is cfrm.date.from.

I tried using this but it did not work:

utc.add(cfrm.date.from,0,0,-10,0,0,0)

mark_h
1st October 2019, 15:41
Just search this forum for like utc dates - lots of threads. I found this one http://www.baanboard.com/baanboard/showthread.php?t=67028&highlight=utc+dates which might help.

saenzh
1st October 2019, 15:56
Thank you mark_h!