Forcing NSDate to return 24-hour time regardless of locale
<p>I'm trying to store today's date in a sqlite table as a string in a 24-hour time format regardless of the user's locale. Because NSDate honours the user's locale, this code returns different results depending on the user's location:</p>

<pre><code>NSLog(@"The date is %@", [NSDate date]);
</code></pre>

<p>If their locale is set to the United Kingdom, where 24-hour time is the default, the above returns
'The date is 2009-09-05 11:17:35', whereas if they're in the United States, where 12-hour time is the default, it returns 'The date is 2009-09-05 11:17:35 AM'.</p>

<p>Is there a way to automatically detect and convert 12-hour time to 24-hour time before committing it to the database? I'm using SQLite Persistent Objects, so I need to provide the date as an NSDate and not NSString.</p>
