Hi I have a string of this type - “01/01/2019”. I need to get the value in date time format as January- 2019. How do I approach this?
Hi,
can you try the following?
DateTime.Parse("01/01/2019").ToString("MMMMM-yyyy")
Regards,
Hi @shreyaank
now.ToString(“MMMM-yyyy”)
More info here @shreyaank Good luck!
http://www.csharp-examples.net/string-format-datetime/
Thanks it worked
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.