Skip to content

StructuredDate

A pre-parsed human-friendly representation of a date and time.

FieldTypeRequiredDescription
date\{ /** Full format, e.g., "Tuesday, October 3". */ EEEEMMMMd: string; /** Short weekday/month/day, e.g., "Tue, Oct. 3". */ EEEMMMd: string; /** Long date format, e.g., "Tuesday, October 3, 2023". */ long: string; /** Short numeric format, e.g., "10/03/2023". */ short: string; \}✓Formatted date strings.
timestring✓Time string (e.g., “3:00 PM”).
utcstring✓UTC timestamp (e.g., “2006-10-25T12:00:00Z”).
timezonestring✓IANA timezone (e.g., “America/New_York”).
localstring✓Local timestamp (e.g., “2006-10-25T12:00:00-04:00”).
upcomingboolean✓Whether this date is in the future.
duration\{ days: number; hours: number; minutes: number; weeks: number; months: number; \}✓Duration details from now to the date.