Skip to main content

Microsoft Silverlight

DateTime.Now.ToString formatting bug on MacRSS Feed

(0)

MarkTap
MarkTap

Participant

Participant

1442 points

263 Posts

DateTime.Now.ToString formatting bug on Mac

This code:

         string time = DateTime.Now.ToString("h:mm t");

Yields a trailing "P" on Windows/IE7 and a trailing "PM" on Mac/Safari.

This is the September 2007 1.1 Alpha refresh

I think the Windows implementation is correct - "t" should only yield the first letter.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities