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.