I have dates that are in m/d/yy but need to convert them to yyyy-dd-mm format. I have the following regex
(\d{1,2})\/(\d{1,2})\/(\d{1,2})
with this replace 20$3-$1-$2
. I'm assuming year 2000 which is okay but this breaks for single digit days and months.
Is there any way to prefix the days and months with 0 if the match is on a single digit?