Section 9:97. Date Manipulation – Trunc
Hive provides the trunc() function for date manipulation. The trunc() function truncates a date to a specified unit of time, such as day, month, or year, by setting all lower-order units to zero. The syntax of the trunc() function is as follows: trunc(date, unit) Here, date is the input date, and unit is the unit …