Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get month name and am/pm in lowercase

How to get month name and am/pm in lowercase

DateTime.Now.ToString("MMMM h:m tt");


this giving me capital letters, but I want small letters.

like image 378
Student Avatar asked Mar 18 '11 22:03

Student


Video Answer


1 Answers

You just need to use ToLower method

DateTime.Now.ToString("MMMM h:m tt").ToLower();
like image 150
Student Avatar answered Sep 17 '22 20:09

Student



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!