danielmoncada / date-time-picker

Angular Date Time Picker (Responsive Design)
https://daniel-projects.firebaseapp.com/owlng/date-time-picker
MIT License
141 stars 61 forks source link

MY_MOMENT_FORMATS: parseInput is not working #16

Closed khurramIlyas closed 4 years ago

khurramIlyas commented 4 years ago

I am setting following formats but parseInput is not working for me. I expect that value that I will receive in my form control will be as per format provided in parseIntbut it always set value in a different format.

Actually, I want to have different date formats for display & actual value that will be passed to form control.

export const MY_MOMENT_FORMATS = {
    parseInput: 'YYYY-MM-DD HH:mm:ss',
    fullPickerInput: 'MMM DD, YYYY hh:mm A',
    datePickerInput: 'MMM DD, YYYY',
    timePickerInput: 'hh:mm:ss A',
    monthYearLabel: 'MMM YYYY',
    dateA11yLabel: 'LL',
    monthYearA11yLabel: 'MMMM YYYY',
}
danielmoncada commented 4 years ago

Have you provided a custom CustomDateTimeAdapter?

danielmoncada commented 4 years ago

@khurramIlyas hello is this still an issue? it's about almost 4 months and I haven't heard back.

khurramIlyas commented 4 years ago

Hi

Apologies for not following. I don't know how I missed the first response of 2nd March from you. But I am not using this package anymore. I don't actually even remember.

On Sat, Jun 13, 2020 at 9:46 AM Daniel Moncada notifications@github.com wrote:

@khurramIlyas https://github.com/khurramIlyas hello is this still an issue? it's about almost 4 months and I haven't heard back.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/danielmoncada/date-time-picker/issues/16#issuecomment-643568885, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDT5CI6NUBA2RW7NKT4PHDRWMABPANCNFSM4K5LKAIQ .