[Glass] Date reading and writing

Jupiter Jones jupiter.jones at mail.com
Wed May 29 17:38:09 PDT 2019


Hi All,

I use a bunch of frameworks like Magritte, NeoCSV, NeoJSON and others that all write dates based on aDate-#asString (which formats dates in USA date format) and read based on Date-#readFrom: (which reads expecting USA date format).

Since the USA is the only country that uses this format, how is everyone else dealing with it?

Overriding date printing and reading in each framework seems counter-productive and fraught with error, as does replacing #asString and #readFrom: in Date itself.

There doesn’t appear to be Date related stuff in Locale, so I’m guessing I’m missing something simple here :)

Any advice would be much appreciated.

Cheers,

Jupiter


More information about the Glass mailing list