Skip to Content
avatar image
Former Member

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

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 26, 2018 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).

    Add comment
    10|10000 characters needed characters exceeded