Automatically get yesterday's dateGood morning,
I run a script automatically every day that uses the previous day's date at midnight. I would like to retrieve this date automatically but I don't know how to achieve this. Do you have any answers?
Thank you in advance for your answers
Elise.
Advanced Statistical ModelingAutomation and ScriptingQuality and Process EngineeringRe: Obtenir automatiquement la date de la veilleTry using Date Increment with Today():
Names Default To Here(1);<BR />lastDay = Date Increment(Today(), "day", -1, "start");
//Print(Format(lastDay, "Format Pattern", "<YYYY><MM><DL><DD> <HH24><:><MM><:><SS>")); //"2021/08/25 00:00:00"</SS></MM></HH24></DD></DL></MM></YYYY>
Re: Automatically get yesterday's dateThank you very much that's exactly what I needed!