user2734217
user2734217

Reputation: 121

How to show the time as lower case am/pm

I am display the start time - they would like the AM /PM to be in lower case. In this code, it is UPPER CASE. How to make this lower?

start = reh.START_DATE.Date;
start = start.AddHours(reh.START_TIME.Hour);
start = start.AddMinutes(reh.START_TIME.Minute);

Upvotes: 2

Views: 2409

Answers (2)

Harrison
Harrison

Reputation: 3953

If you only want the AM/PM and not the date to be lowercase then you could use

string date = string.Format("{0} {1}", start.Date, start.ToString("hh:mm tt").ToLower());

Upvotes: 3

gpmurthy
gpmurthy

Reputation: 2427

Consider converting it to string and calling the ToLower() method...

e.g...

string time = start.ToString().ToLower();

Upvotes: 2

Related Questions