RenovoSolutions / ngx-datetimepicker

An Angular component for a customizable date and time picker
MIT License
31 stars 24 forks source link

Format Date #43

Closed rottanak closed 2 years ago

rottanak commented 7 years ago

Could you tell me how to format show in input like "DD-MMM-YYYY"?

alecrem commented 5 years ago

The Date service is putting the date strings together on its own instead of using the locale, so this is going to take some work.

For reference, this is from the PR where I made it possible to have the time in a 24 hour format: https://github.com/RenovoSolutions/ngx-datetimepicker/pull/66/commits/4afd978f87e98829bb7fc2d93ada811b9c719ffd

Feel free to ping me if you are going to take on this issue.

ghost commented 4 years ago

Any chance of still getting this to work? I had a look at the source and see that it returns a different format for mobile, so it should be possible?

benjamin-a-kuntz commented 2 years ago

Format added in https://github.com/RenovoSolutions/ngx-datetimepicker/pull/160