Skip to content

Instantly share code, notes, and snippets.

@greenygh0st
Created June 5, 2024 22:33
Show Gist options
  • Save greenygh0st/ee91d13f28e6c550bea31345a6200b9d to your computer and use it in GitHub Desktop.
Save greenygh0st/ee91d13f28e6c550bea31345a6200b9d to your computer and use it in GitHub Desktop.
Get the UTC date in Oracle
CREATE OR REPLACE FUNCTION SYSDATEUTC RETURN DATE AS
BEGIN
RETURN CAST(sys_extract_utc(SYSTIMESTAMP) AS DATE);
END SYSDATEUTC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment