Skip to Content

comma between date and time in sap.ui.model.type.DateTime

Nov 09, 2017 at 03:14 PM


avatar image
Former Member

Hi everybody,

I am using the sap.ui.model.type.DateTime to format data dinamically from a table, using a template like this one:

template: new sap.m.Text({ text: { path:columnName,

type: new sap.ui.model.type.DateTime({ source: { }, style: "short" }) },


As a result, I get the data formatted but with a comma between date and time. For instance, for german language and the style short I get:

09.11.2017, 16:10

But I would like to take that comma away, like:

09.11.2017 16:10

Is that possible without using a pattern? (I dont want to use it to keep flexibility for different languages).

Thank you a lot for your help!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Iftah Peretz
Jan 26 at 07:27 PM


If all fails you can do it on the backend side (by converting to Edm.String and having your way with it).

10 |10000 characters needed characters left characters exceeded