1

Do you know of a strtotime equivalent in C#(.NET) even for other languages than English (i.e. Slovak version of 25th January is 25 Január).

Skuta
  • 5,656
  • 27
  • 57
  • 68

2 Answers2

4

There is no direct equivalent in c#. There is Date.Parse() which converts a string to a Datetime object. This combined with CultureInfo class should achieve the desired affect.

See the answer at : strtotime equivalent in .NET

Community
  • 1
  • 1
Kami
  • 18,699
  • 4
  • 47
  • 63
1

You have DateTime.Parse that parses a string into a DateTime.

zmbq
  • 36,789
  • 13
  • 91
  • 160