Hour
Last updated
Was this helpful?
Last updated
Was this helpful?
Returns the hour component of the given Date as a number.
Hour(date, [timezone])
date (required) The Date from which to extract the hour component.
timezone (optional) Name of to get the date part at (e.g., “America/Los_Angeles”). When calculating a time zone, input dates are treated as UTC.
Returns 7.