The "punchdate" when referenced is in a "YYYY-MM-DD" fashion. To change this to a a more traditional format like "MM-DD-YYYY" you can create a variable to make the adjustment using the below script:
$newdate = (((mid(punchdate,6,2) + "-") + right(punchdate,2)) + "-") + left(punchdate,4);
This makes $newdate a reorganized version of the punchdate string into the format mentioned "MM-DD-YYYY";
| |