Reputation: 121
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
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
Reputation: 2427
Consider converting it to string and calling the ToLower() method...
e.g...
string time = start.ToString().ToLower();
Upvotes: 2