tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/86-date-formatting-issuesInfinite Kind: Discussion 2015-03-31T16:14:52Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/144602682012-03-18T22:54:37Z2012-03-18T22:54:37ZDate formatting issues<div><p>To the Moneydance developers...</p>
<p>Do you do anything special to ensure that dates are formatted
correctly on Macs?</p></div>Kevin Stembridgetag:infinitekind.tenderapp.com,2009-01-14:Comment/144602682012-03-21T15:18:24Z2012-03-21T15:18:24ZDate formatting issues<div><p>Hi Kevin,</p>
<p>We use our own internal date formatter that observes the
preference set by the customer. The default format is gotten from
the system settings using the normal java way (the way that you are
using):<br>
DateFormat.getDateInstance(DateFormat.SHORT)</p>
<p>so I'm not sure why it would come out wrong for you and not
moneydance itself. Maybe people want you to use the same date
format that they've set in the moneydance preferences? If so, you
can get your extensions context then cast it to
com.moneydance.apps.md.controller.Main and call
.getPreferences().getShortDateFormatter() to give you an instance
of our custom date formatter which takes the integer dates from
moneydance objects and is more lenient in parsing.</p>
<p>Thanks,<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/144602682012-03-21T23:18:49Z2012-03-21T23:18:49ZDate formatting issues<div><p>Hi Sean,<br>
Thanks for the reply. I'll try your suggestion and see if I can
find a guinea pig to try it out for me.</p>
<p>Thanks,<br>
Kevin</p></div>Kevin Stembridge