How do I get the AM/PM value from a DateTime?

How about:

dateTime.ToString("tt", CultureInfo.InvariantCulture);

Leave a Comment