« TimeSnapper | Main | My sports broadcasting debut »
February 24, 2006
International Swoosh
International formats have bitten me again. This time it was because I was using the CultureInfo.InvariantCulture when parsing strings to dates. You don't want to do this because you want the Parse to use the machine's current culture info to validate the DateTime. You only want to use CultureInfo.InvariantCulture when saving to a file or restoring from a file. You use it when storing to the file so that the value is stored in a culturally neutral format. This allows me to save a Swoosh game file on my Pocket PC with the region set to English (Australia) and open that same file on my PC with the region set to English (United States). This will correctly handle the date value and it will show up as 24/02/2006 or 02/24/2006 depending on your settings.
This fix will be in the next version of Swoosh along with some new features like exporting stats to a CSV file and reports with lots of tempo free stats.
Posted by mikel at February 24, 2006 09:56 AM
Trackback Pings
TrackBack URL for this entry:
http://WWW.mjberger.COM/cgi-bin/mt-tb.cgi/223
Comments
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)