Input and Trigger:
- Run the bot using the Run Task command on the bot you created.
- A message box will appear at the start of the process.
- At the end of the process the result will be displayed in the message box for only 2 seconds.
Actions:
(1) The bot calculates the first and last day of the last quarter. It calculates the first and last day of the different quarters according to today's day.
- January 1 and March 31
- April 1 and June 30
- July 1 and September 30
- October 1 and December 31
(2) For example, if today is March 13, 2020, it calculates the values for October 1, 2019 and December 31, 2019. If today is April 3, 2020, the values for January 1, 2020 and March 31, 2020 are calculated. Output:
- The bot sets the date of the first and last days of the latest quarter to the clipboard as follows.
- The first day is to the left of the value set on the clipboard. The right side is the last day. They are separated by commas.
yyyymmdd, yyyymmdd
For example, 20200101,20200331
(3) For the value set to the clipboard, execute the Sub String command of String Operation to extract the value from the clipboard.
(4) If an error occurs, -1 is set to the clipboard.
Use cases:
- Calculate the first and last days required for quarterly settlement and help you to enter the information into business systems.
- The bot will not let you calculate the date of quarterly settlement.