mominsamir / smDateTimeRangePicker

Angular Material Date Picker, DateTime Picker, Date Range Picker, Date Time range picker
http://mominsamir.github.io/smDateTimeRangePicker/
MIT License
130 stars 50 forks source link

Date-time picker displays date object in a different format #91

Open praveenk-telsiz opened 7 years ago

praveenk-telsiz commented 7 years ago

My sm-date-time-picker template:

<sm-date-time-picker fname="date_to" label="End date and time" on-focus ng-model="modalElmt" format="MM-DD-YYYY HH:mm" mode="date-time" week-start-day="Sunday" flex="100" close-on-select="true">

When I select just a date, the input model shows (think the moment object) 'Tue Dec 13 2016 11:02:19 GMT-0800' before I make my selection on hour and minute. Once I select the hour and minute, it returns to the format desired. Can this be made consistent? like it always shows up in the format that we send in template?

screen shot 2016-12-13 at 11 02 50 am
mominsamir commented 7 years ago

Yes this can be fixed. I will fix it

praveenk-telsiz commented 7 years ago

Thanks !

Sent from my iPhone

On Dec 13, 2016, at 12:31 PM, Samir notifications@github.com wrote:

Yes this can be fixed. I will fix it

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

praveenk-telsiz commented 7 years ago

@mominsamir Any updates on this?

rahimnagori commented 5 years ago

@mominsamir , any update on this? It also occurs when mode="date", selecting a date and than click cancel this format appears with new date and format (00:00 GMT..... ).

@praveenk-telsiz , have you got the solution ?