The intention of this function was to create alternate date forms.
What it was supposed to do:
02/02 > 2/2
20/02 > 20/2
What it actually did:
02/02 > 2/2
20/20 > 2/2
Just removed all the zeroes!
I had originally done it the right way, with care - but then upon revisiting I thought "What is this inefficient part? Why not just purge all the zeroes?"
Then today I was explaining it to a friend and realized it would ruin his birthday!
Fixed now.
The intention of this function was to create alternate date forms.
What it was supposed to do: 02/02 > 2/2 20/02 > 20/2
What it actually did: 02/02 > 2/2 20/20 > 2/2
Just removed all the zeroes! I had originally done it the right way, with care - but then upon revisiting I thought "What is this inefficient part? Why not just purge all the zeroes?"
Then today I was explaining it to a friend and realized it would ruin his birthday! Fixed now.