How to use current date in the where clause - Stack Overflow I like 'CURRENT_TIMESTAMP' over 'SYSDATE'- both should do the same thing but readability goes a long way I would recommend casting your 'UPDATE_DATE' to a DATE (if it is in datetime) then use CAST and DATEADD to adjust 'now' to 'yesterday'
How to get the current date time in Java - Stack Overflow The concept of the "current date time" is complicated 1 - System currentTimeMillis() gives the "system" time While it is normal practice for the system clock to be set to (nominal) UTC, there will be a difference (a delta) between the local UTC clock and true UTC