0

Who could say - how convert this string for example - {YYYY-MM-DD_hh-mm-ss} into DateTime type in .net core?

I tried regex but im really not good in it

3
  • 1
    Welcome to Stack Overflow. Did you search? It sounds to me like a task someone should have undertaken before. Commented Feb 25, 2023 at 11:32
  • Hi - Everywhere are examples like 2018-07-20 18:53:46.598000 , but i didnt this is a string with not standard format Commented Feb 25, 2023 at 12:50
  • DateTime.ParseExact should be able to work here Commented Mar 2, 2023 at 18:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.