Hello Marc,
I tried this. And I believe this will help you as well.
new sap.m.DatePicker("date3",{
width: "15em",
value: {
path: "/dateValue",
type: new sap.ui.model.type.Date({style: "long", pattern: "dd-MM-yyyy"})
}
});
where:
var oModel = new sap.ui.model.json.JSONModel();
oModel.setData({
dateValue: new Date(1330470000000)
});
sap.ui.getCore().setModel(oModel);
Hope this helps.
Best Regards,
Sunita