Skip to main content

Date and Time Formats for Campaign Records

Cloverhound Cloud's valid date-time formats primarily adhere to the strftime directives and its compliance with ISO 8601.

Cloverhound Cloud's date-time parsing is lenient; it recognizes many common formats. However, since the format is not specified, it could lead to ambiguity in parsing.

A no exhaustive but good reference for ISO 8601 can be found here.

A table of common various ISO 8601 formats and their validity without specifying its format is found below:

Recognizable w/o formatFormatInput valueSample result date-time in UTCDescription
No%C20It is an invalid dateCalendar date, reduced accuracy, specific century
Yes%Y%m%d200711192007-11-19 00:00:00 UTCCalendar date (basic)
Yes%F2007-11-192007-11-19 00:00:00 UTCCalendar date (extended)
No%Y-%m2007-11It is an invalid dateCalendar date, reduced accuracy, specific month
No%Y2007It is an invalid dateCalendar date, reduced accuracy, specific year
Yes%d212024-11-21 00:00:00 UTCDay of the month, zero-padded (01..31) %-d no-padded (1..31), reduced accuracy, specific day
Yes%Y%j20073232007-11-19 00:00:00 UTCOrdinal date (basic)
Yes%Y-%j2007-3232007-11-19 00:00:00 UTCOrdinal date (extended)
Yes%GW%V%u2007W4712007-11-19 00:00:00 UTCWeek date (basic)
Yes%G-W%V-%u2007-W47-12007-11-19 00:00:00 UTCWeek date (extended)
Yes%GW%V2007W472007-11-19 00:00:00 UTCWeek date, reduced accuracy, specific week (basic)
Yes%G-W%V2007-W472007-11-19 00:00:00 UTCWeek date, reduced accuracy, specific week (extended)
No%H%M%S083748It is an invalid dateLocal time (basic)
Yes%T08:37:482024-11-28 08:37:48 UTCLocal time (extended)
No%H%M0837It is an invalid dateLocal time, reduced accuracy, specific minute (basic)
Yes%H:%M08:372024-11-28 08:37:00 UTCLocal time, reduced accuracy, specific minute (extended)
No%H082024-11-08 00:00:00 UTCLocal time, reduced accuracy, specific hour
Yes%H%M%S,%L083748,0002024-11-28 08:37:48 UTCLocal time with decimal fraction, comma as decimal sign (basic)
Yes%T,%L08:37:48,0002024-11-28 08:37:48 UTCLocal time with decimal fraction, comma as decimal sign (extended)
Yes%H%M%S.%L083748.0002024-11-28 08:37:48 UTCLocal time with decimal fraction, full stop as decimal sign (basic)
Yes%T.%L08:37:48.0002024-11-28 08:37:48 UTCLocal time with decimal fraction, full stop as decimal sign (extended)
No%H%M%S%z083748-0600It is an invalid dateLocal time and the difference from UTC (basic)
Yes%T%:z08:37:48-06:002024-11-28 14:37:48 UTCLocal time and the difference from UTC (extended)
Yes%Y%m%dT%H%M%S%z20071119T083748-06002007-11-19 14:37:48 UTCDate and time of day for calendar date (basic)
Yes%FT%T%:z2007-11-19T08:37:48-06:002007-11-19 14:37:48 UTCDate and time of day for calendar date (extended)
Yes%Y%jT%H%M%S%z2007323T083748-06002007-11-19 14:37:48 UTCDate and time of day for ordinal date (basic)
No%Y-%jT%T%:z2007-323T08:37:48-06:00It is an invalid dateDate and time of day for ordinal date (extended)
No%GW%V%uT%H%M%S%z2007W471T083748-0600It is an invalid dateDate and time of day for week date (basic)
Yes%G-W%V-%uT%T%:z2007-W47-1T08:37:48-06:002007-11-19 14:37:48 UTCDate and time of day for week date (extended)
Yes%Y%m%dT%H%M20071119T08372007-11-19 08:37:00 UTCCalendar date and local time (basic)
Yes%FT%R2007-11-19T08:372007-11-19 08:37:00 UTCCalendar date and local time (extended)
Yes%Y%jT%H%MZ2007323T0837Z2007-11-19 08:37:00 UTCOrdinal date and UTC of day (basic)
No%Y-%jT%RZ2007-323T08:37ZIt is an invalid dateOrdinal date and UTC of day (extended)
No%GW%V%uT%H%M%z2007W471T0837-0600It is an invalid dateWeek date and local time and difference from UTC (basic)
Yes%G-W%V-%uT%R%:z2007-W47-1T08:37-06:002007-11-19 14:37:00 UTCWeek date and local time and difference from UTC (extended)
tip

Even when these date-times can include time zones, they do not get stored as the record's local_time_zone.

  • a. The "%Y%m%dT%H%M%S%z" format. For example, for the "2024-04-15T15:30:00 -1" value the stored scheduled_for will be 2024-04-15 16:30:00 UTC.
  • b. The "%Y%m%d %H%M%S%z" format. For example, for the "2024-04-15 17:30:00 +1" value the stored scheduled_for will be 2024-04-15 16:30:00 UTC.

See the Record Timezones section for more info about them.

Other popular date-time formats and their validity without specifying its format is found below:

Recognizable w/o formatFormatInput valueSample result date-time in UTCDescription
Yes%d %b26 Nov2024-11-26 00:00:00 UTCDate, reduced accuracy, specific day and month
Yes%d %b %Y26 Nov 20242024-11-26 00:00:00 UTCDate with abbreviated month name
Yes%d %b %H:%M26 Nov 16:542024-11-26 16:54:00 UTCDate-time, reduced accuracy, specific hour and minutes
Yes%B %d, %YNovember 26, 20252025-11-26 00:00:00 UTCDate with full month name
Yes%B %d, %Y %H:%MNovember 26, 2024 16:542024-11-26 16:54:00 UTCDate-time with full month name, reduced accuracy, specific date, hour and minutes
No%B %d, %YNovember 26th, 2024It is an invalid dateDate with full month name and ordinal number day
No%B %d, %Y %H:%MNovember 26th, 2024 16:54It is an invalid dateDate-time with full month name and ordinal number day, reduced accuracy, specific hour and minutes
Yes%a, %d %b %Y %H:%M:%S %:zTue, 26 Nov 2024 16:54:47 -06002024-11-26 22:54:47 UTCDate-time with abbreviated month name and weekday name
Yes%A, %d %b %Y %H:%M:%S %:zTuesday, 26 Nov 2024 16:54:47 -06002024-11-26 22:54:47 UTCDate-time with full weekday name and abbreviated month name
Yes%A, %d %B %Y %H:%M:%S %:zTuesday, 26 November 2024 16:54:47 -06002024-11-26 22:54:47 UTCDate-time with full weekday name and full month name
No%m/%d/%Y12/13/2012It is an invalid dateDate with number month/day/year format
Yes%d/%m/%Y15/04/20222022-04-15 00:00:00 UTCDate with number day/month/year format
No%d-%m-%Y15/04/2022It is an invalid dateDate with number day-month-year format
No%m-%d-%Y04-15-2022It is an invalid dateDate with number month-day-year format
Yes%d-%b-%Y15-Apr-20222022-04-15 00:00:00 UTCDate with abbreviated month name
Yes%Y-%B-%d2022-April-152022-04-15 00:00:00 UTCDate with full month name
Yes%b-%d-%YApr-15-20222022-04-15 00:00:00 UTCDate with abbreviated month name first
Yes%B-%Y-%dApril-2022-152022-04-15 00:00:00 UTCDate with full month name first
Yes%B %d, %YApril 15, 20222022-04-15 00:00:00 UTCDate with full month name
Yes%B %d, %Y %H:%M:%SApril 15, 2022 16:30:002022-04-15 16:30:00 UTCDate-time with full month name
Yes%Y-%m-%d %H:%M:%S %P2022-04-15 04:30:15 PM2022-04-15 16:30:15 UTCDate-time using a 12 hour format
Yes%Y-%m-%d %H:%M:%S %p2022-04-15 04:30:15 pm2022-04-15 16:30:15 UTCDate-time using a 12 hour format