Saturday 20 July 2019

C# - Convert DateTime to Month Year - like December 2019

Watch this example on YouTube


  


 string ConvertedDT = DateTime.Now.ToString("MMMM") + " " + DateTime.Now.Year.ToString();
     

No comments:

Post a Comment