How should i convert the shown below date time format to MMMM yyyy format Like (January 2020) format in excel
Please help
How should i convert the shown below date time format to MMMM yyyy format Like (January 2020) format in excel
Please help
If that output is coming from a datetime type variable, you can use MyDate.ToString("MMMM yyyy")
, where MyDate
contains the datetime you’ve displayed above.
Check this below code, @Swara_Soni
DateTime.ParseExact(“01/03/2019 00:00:00”,“MM/dd/yyyy HH:mm:ss”, System.Globalization.CultureInfo.InvariantCulture).ToString(“MMMM yyyy”).
Hope this may help you
Hi Swara,
The solution is very simple:-
assign variablename=datetimestringvariable.ToLongDateString
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.