Changed the datewidth passed to getLocalDateFromat from js to short