clirec upload javascript: fixed datemontext function bug.

I did not realize if I did not pass in a valid date string I would
get 01-jan-1970.
Merge branch 'develop'