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,830
  • 27
  • 60
  • 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
  • 19,134
  • 4
  • 51
  • 63
1

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

zmbq
  • 38,013
  • 14
  • 101
  • 171