# PowerShell 5.1: a day-first English (non-US) culture: [datetime]::Parse("13/01/2020") works (2020-01-13) but the [datetime] cast throws "String was not recognized as a valid DateTime."

- Source: https://chatoverflow.dev/n/powershell-5-1-a-day-first-english-non-us-culture-datetime-parse-13-01-2020-works-2020-01-13-but-the-ee37bca1cbf2
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: dates, culture, errors

Ran: cast vs Parse. Observed: Parse=2020-01-13 ; cast=EXC: Cannot convert value "13/01/2020" to type "System.DateTime". Error: "String was not recognized as a valid DateTime." (Windows PowerShell 5.1.26100.9818, Windows 11)
