I have a process that follows different paths depending on whether an input date argument has been given or left blank.
The input argument is of type DateTime but I don’t know how to check successfully if there is a date or not.
I firstly tried dateArg.isnumeric on the date argument but this did not work because if I had a value of 2023-06-30 for example dateArg.isnumeric evaluates to false.
I then tried string.isNullorEmpty(dateArg.tostring(yyyyMMdd)) but this evaluates to false if the date arg is empty and as dateArg is a date not a string you can’t just put it into the isnullorempty