On 09 Jul 2014, at 17:04, Buddha Buck <blaisepascal@gmail.com> wrote:
On Wed, Jul 9, 2014 at 10:13 AM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
I don't know how this could be useful besides doing many things: "Split a string on dashes, reverse the order of the elements and join them using slashes". If you could find a example with some real application would be nice too.
Yes indeed, it does not make enough sense. Any ideas ?
There are probably better ways to do it (using true date objects) but converting ISO date strings to US or EU date strings (yyyy-mm-dd to mm-dd-yyyy or dd-mm-yyyy) is almost "Split a string on dashes, rearrange the order of the elements and join them using slashes."
I changed the example to use the euro/us date conversion as that is indeed something most people will understand. Thx!