StringToTimeOfDay extension

on

Methods

toTimeOfDay12() TimeOfDay

Available on String, provided by the StringToTimeOfDay extension

"2:30 PM", "02:30pm", "2:30PM" → TimeOfDay (12-hour format)
toTimeOfDay24() TimeOfDay

Available on String, provided by the StringToTimeOfDay extension

"14:30" → TimeOfDay (24-hour format) – most common & safest
toTimeOfDayAuto() TimeOfDay

Available on String, provided by the StringToTimeOfDay extension

Smart detection: tries 24h first, then 12h