I am after getting the month names on OS X in the users locale. Can this be done?
http://comments.gmane.org/gmane.comp.lang.realbasic.user/168250 might help (haven’t tried)
or http://www.cocoawithlove.com/2009/05/simple-methods-for-date-formatting-and.html
I put together a quick example project. It uses the current locale as set by the user’s preferences.
https://www.dropbox.com/s/yetfm9gwwg62y10/localized%20month%20from%20date.xojo_binary_project?dl=0
I also know that both Einhugur and Monkeybread plugins have functions for this.
Yeah MBS would definitely have plugin functions since it is fairly simple declares/function calls.
You can use a shell to Date
http://ss64.com/osx/date.html, save the current month and scan all of them, then restore current month.
[quote=147257:@Jason King]I put together a quick example project. It uses the current locale as set by the user’s preferences.
https://www.dropbox.com/s/yetfm9gwwg62y10/localized%20month%20from%20date.xojo_binary_project?dl=0[/quote]
Jason, Brilliant, just what I was after.
Thanks everyone else for your input. Jason’s code can then be understood and tinkered with by reading some of the detail at Markus’s second link.
[quote=147253:@Markus Winter]http://comments.gmane.org/gmane.comp.lang.realbasic.user/168250 might help (haven’t tried)
or http://www.cocoawithlove.com/2009/05/simple-methods-for-date-formatting-and.html[/quote]
[quote=147280:@Mike Charlesworth]Jason, Brilliant, just what I was after.
Thanks everyone else for your input. Jason’s code can then be understood and tinkered with by reading some of the detail at Markus’s second link.[/quote]
Glad I could help!