igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

IgxDatePicker: ability to use an iso date string as model

Open Timmeeeey opened this issue 2 years ago • 7 comments

Is your feature request related to a problem? Please describe.

The IgxDatePicker converts the selected date in a javascript Date object. When you serialize this for a http request the time and timezone is included and converted to UTC. For example if you are in the timezone UTC+1 and you select the date 2023-01-01 it gets serialized to '2022-12-31T23:00:00.000Z'. This is a problem when the backend only expects a iso date string (YYYY-MM-DD).

Describe the solution you'd like

It would be nice if there was a input like [useIsoString]="true" so that the date picker uses an iso date string (YYYY-MM-DD) as model instead of a Date object.

Timmeeeey avatar Jan 11 '23 16:01 Timmeeeey

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Mar 14 '23 00:03 github-actions[bot]

hi @Lipata @jackofdiamond5,

I wanted to check if there is any update on this issue. Is this a feature that is being considered to implement?

Timmeeeey avatar Jun 15 '23 12:06 Timmeeeey

@Timmeeeey I will add the feature for a review for the next major release.

radomirchev avatar Jun 15 '23 13:06 radomirchev

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Aug 15 '23 00:08 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Oct 16 '23 00:10 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Dec 16 '23 00:12 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Feb 18 '24 00:02 github-actions[bot]