I want day,month and year values from the value in an object.
{myDate : '12/31/2020'}
I want to do something like this:
d,m,y = mydate('/')
so that d= 12, m=31 , y = 2020 and they are separated using the '/' character
Is there a way to do something like this in JS?