DateTime formatting

I get some data through odata into a grid and can open an data-entry through double click which requests the same data with an generated method in the same way. So far so good.
The strange thing is that my datetimes which I pull from the db show up in different ways.

In the grid I get an nice iso-formated date with time "yyyy-mm-dd HH:mm", in the details-popup I get "mm/dd/yyyy" without time. If I try to format it (utc or not, doesn't seem to make a format-related difference) through DateFormat:"yyyy-mm-dd HH:mm" it still doesn't look right. What am I doing wrong?

image

The difference comes from the fact that DataGrid is using template with Angular date pipe while the editor is PrimeNG DatePicker with their own formatting.

Ok, so how can I get the PrimeNG DatePicker to show the time right?
My DB-Dates look like this: 2019-09-13T16:14:10.7953873Z

You can check ShowTime:

and set desired DateFormat:
https://primefaces.org/primeng/showcase/#/calendar

1 Like

Yes. That helped ... in combination with DateFormat:yy-mm-dd which turns into yyyy-mm-dd :thinking:
Thank you very much.