How do I get the AM/PM value from a DateTime? October 7, 2022 by Tarik How about: dateTime.ToString("tt", CultureInfo.InvariantCulture);