This question already has an answer here:

I need to match the date time pattern in this format:

17:00, 20th May 2016

I have achieved everything in this except for the --> 20th part in the date. I have used:

DateTime.Now.ToString("HH:mm, ddth MMMM yyyy")

but it shows as:

17:00, 20P5 May 2016

Related posts

Recent Viewed