Fixed issue #8242: Wrong two digit year recorded

Dev: Datepicker uses yy for four digit year, y for two digits.
Dev: wrong jsdate lead to truncation of year ("2013"->"20")