Also see the numeric usage of the TRUNC function.
Date/Time | The date that you want truncated |
Format | (optional) An indication of what you want truncated to |
Without a FORMAT parameter, this will return the date as a date at midnight. It is strongly recommended that you use this function when referencing the SYSDATE construct in relation to EXPIRY and EFFECTIVE dates.
With a FORMAT parameter, it will selectively remove part of the date information:
TRUNC(~) will return the date passed (but with a time stamp of midnight)
TRUNC(~,’MM’) will return the first day of the month
TRUNC(~,’YYYY’) will return the first day of the year
Screen captures are meant to be indicative of the concept being presented and may not reflect the current screen design.
If you have any comments or questions please email the Wiki Editor
All content © High Line Corporation