fix js errors in console resulting in invalid date

a bit of better parameter sanitization when entering dates in
UtcExtentDateTime. unit tests added as well. SEBULBA HE ALWAYS WINS.
Merge pull request #1414 from aodn/issue_1069

fix js errors in console resulting in invalid date