Is It 12/23/2011 or 23/12/2011?

by Kevin December 23, 2011 08:39

In my rush to get the Live Tile and pop-up reminder update out for Bill Reminder, I overlooked testing different date/time formats for the pop-up reminder scheduler. Result? DateTime.Parse error, and no way to get to the main page.

Maybe jumping to an error page to report an exception wasn't such a great idea. I'll be rewriting the error handling in a future update.

As for the bug at hand, I just needed to specify the culture that the date/time was originally stored in and let the DateTime.Parse function handle the conversion. The code looks like this and should be available for download in a few days:

reminder.BeginTime = DateTime.Parse(popUpReminderTime, new CultureInfo("en-US");

Apologies to my international users, and thanks to Mathieu for reporting it and helping to find a fix.


Tags: , ,

Windows Phone

Add comment

  Country flag

  • Comment
  • Preview

About the author


I work on .NET development by day; Windows PC & Windows Phone development by night.

Month List