That's much better than my approach!
But: if you need to determine the - let's say - last
work day of a month - my approach wins ;-)
Cheers
Christoph
------------------------------
----------------------------------------------------------------
Automic AE Consultant and Trainer since 2000
----------------------------------------------------------------
------------------------------
Original Message:
Sent: 02-05-2020 10:49 AM
From: Christian Böck
Subject: UC4 scripting
Hi Praveena,
you can also do it like this
:set &date# = LAST_OF_PERIOD("YYYYMMDD:&$PHYS_DATE_YYYYMMDD#","MM","YYYYMMDD"):print last day of month = &date#
------------------------------
Thx & rgds
Christian
Original Message:
Sent: 02-05-2020 09:09 AM
From: Christoph Rekers
Subject: UC4 scripting
Hi Praveena,
here you go (see screen shot):
1. create a CALE. Create a Monthly event like displayed
2. run this script in any object:
:set ¤t_date# = sys_date()
:set &ld# = CALE_LOOK_AHEAD(¤t_date#,"ONE","CALE.LAST_DAY_OF_MONTH","LAST_DAY_OF_MONTH")
:print &ld#
Cheers
Christoph
------------------------------
----------------------------------------------------------------
Automic AE Consultant and Trainer since 2000
Original Message:
Sent: 02-04-2020 03:57 AM
From: praveena Bingi
Subject: UC4 scripting
hello all,
I'm very new to this tool
I need help in scripting in one automic.
I have a requirement to set the posting date to last day in month in the variant .
I need help to write the script so that the posting date would set to last day in a month dynamically
Kindly suggest on this.
Thanks
Praveena Bingi