[IMP] Moved the date formatting functions in openerpframework.js