I have this code in javascript, the date format that is now in $releasedate is formated as "XXXX-XX-XX" I need to create a similar function that checks to see if t