Over the past 12 to 15 months, we have experienced an unprecedented situation. COVID-19 has completely changed how we live and work. In other words, it has defined new normal. After months and months of shutdowns, lockdowns, night curfews etc.,
As you probably have noticed, much of the code that you write is repeatable and are the same repeatedly in different places.
Now these macros are here to make your life a lot easier. There are a few OOB, and you can easily add your own.
We always struggle with setting formats for Date and time values as getByFormat() is not available for GlideDateTime() function. We can use below method to get local date and time with milli seconds in any format we want.