cancel
Showing results for 
Search instead for 
Did you mean: 

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

11-09-2017 4:14 PM
843 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

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!

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

iftah_peretz
Active Contributor
0 Likes

Hi,

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