declared some variables.  Adjusted formatdate function to remove the year.