KeyRoutines
StepFreedate.parse

Read a date from text and get its year, month and weekday

Read date turns text that holds a date into a real date the other date steps understand. It also hands you its parts, so you can check the weekday or month on their own.

How it works

  • Give it text such as 2026-10-17, 2026-10-17 09:30 or 2026-10-17T09:30:00+03:00.
  • You get the date plus its year, month, day, hour, minute and weekday, numbered 1 for Monday to 7 for Sunday, all in local time.
  • By default the routine stops when the text isn't a date; turn that off and the step instead reports it as not valid and carries on.

Routines that use it

Date from a reply

Ask for input, read the typed date, then add a reminder time with Add to date.

Weekend check

Read a date from a file with Read text file and skip the rest when the weekday is 6 or 7.

Clean a messy list

Read each line from Split text and keep only the ones that are valid dates.

Settings

SettingWhat it does
TextText with a date, like 2026-10-17, 2026-10-17 09:30 or 2026-10-17T09:30:00+03:00.
Fail if not adateadvancedStop the routine when the text isn't a date. Off: Valid is false and the routine goes on.

Good to know

  • It reads standard year-month-day dates; custom layouts like day/month/year aren't supported.

Questions

Which date formats can KeyRoutines read?
Year-month-day dates, with or without a time, and the full standard form with a time zone. A date without a time zone counts as local time.
How do I check if text is a valid date?
Turn off "Stop the routine when the text isn't a date" and check the Valid result with Compare values.

Pairs well with

Build this routine in KeyRoutines

Free from the Microsoft Store for Windows 11 and 10. Pro is a one-time upgrade.