In the new UI framework you can call ui.format(Date), this will use the date format specified as the value of the uiframework.formatter.dateAndTimeFormat or uiframework.formatter.dateFormat GPs, I’m not sure if this is what is used for HTML forms. In don’t think these are exposed for use in JS files