I want to retrieve today's date in a specific format with English month name.
I'm using
Format(DateValue(Now), "dd-mmm-yyyy")
,
which gives me
05-cze-2013
,
which is in Polish. What I want to get is
05-Jan-2013
.
I am only interested in a VBA solution. Please also provide a way to set the locale back to the original, also using VBA.
It's not clean VBA but it's a way to get localized formatted date in string. Something that Format function can't do.
More info about localized formatting i great answer https://stackoverflow.com/a/899290 from Ian Boyd
It's not very difficult...
I have achieved this by recording and modifying a macro to fit the criteria.
Further reading available here