Skip to content

When parsing with "tt", it requires using "hh" #28140

@pbiggar

Description

@pbiggar

According to stackoverflow (and this matches my tests locally), you can't call DateTime.ParseExact with both HH and tt. Instead you must use hh.

https://stackoverflow.com/questions/2596969/why-can-t-datetime-parseexact-parse-the-am-pm-in-4-4-2010-42000-pm-using

This would be good to mention in the docs.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Labels

dotnet-fundamentals/svcin-prThis issue will be closed (fixed) by an active pull request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions