Hi all,
Hope you are keeping well.
So far, within a Prompt we are using the following code and this does indeed bring back the Last Day of the Previous Month successfully:
SELECT TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE))
FROM "Workforce Management - Historical Processed Time Cards Real Time"
Can this be extended so this also includes the time of 23:59:59 (Currently, this remains as 12:00:00).
Kind regards,
David