Convert date to string with limited precision
<p>I'm using <code>dateString = date.strftime('%Y-%m-%d %H:%M:%S.%f')</code> on this date: <code>2012-06-28 16:11:17</code> which returns <code>2012-06-28 16:11:17.999771</code> which for some reason is unparseable by Objective-c. How can I limit the last part of the string to 3 decimal places rather than 6?</p>
