I'd like to convert the date separators in a date.
So, from 11.11.2009 -> 11-11-2009
Could someone help me do that with a regex?
my_date = my_date.replace(/\./g, '-');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With