I think I'm getting more than I bargained for. To try to clarify: The script I am working will ONLY be used in the Philippines, laptop knows the date/time of course. There is no DST here. What I need is this: The script will provide the date, from here I need to know what the day before that date was. The initial date will be provided by the script and it WON'T always be today. It could be 04/24/2023 or 05/31/2023 for example. From there I need to know what date yesterday was. Only the date, not HMS no other info. Just the date one day before the date the script provides. Thanks! I appreciate everyone's attention and help.
Hello, what I meant was it can be any date that the script will provide - I was just giving examples. The script format will display MMDDYYYY. From there I need to know how to figure out what the day before was. As to my examples the day before would be 04/23/2023 and 05/30/2023 respectively.
You can use at least two of the solutions provided in this thread (Re: Yesterday's date, Re: Yesterday's date) if you simply alter the date format pattern to match your actual data. Please show the code you have and how it is failing.
The way forward always starts with a minimal test.