SyntaxFix
Write A Post
Hire A Developer
Questions
How about:
dateTime.ToString("tt", CultureInfo.InvariantCulture);