DateTimePicker icon indicating copy to clipboard operation
DateTimePicker copied to clipboard

DateTime Model's date format has some issues.

Open Emiya0306 opened this issue 8 years ago • 3 comments

dateTimeFormat option's default value yyyy-MM-dd hh:mm:ss does not match my expect value 2016-04-22 15:15:15. It is 2016-Apr-22 15:15:15.

Emiya0306 avatar Apr 22 '16 07:04 Emiya0306

A valid dateTimeFormat can either be yyyy-MM-dd hh:mm:ss AA or yyyy-MM-dd HH:mm:ss, the values set in the input boxes will be "2016-04-22 03:15:15 PM" or "2016-04-22 15:15:15".

nehakadam avatar Apr 22 '16 15:04 nehakadam

Yeah~ It is correct in input boxes, but it is great that the dtpicker-comp month input box will auto match the dateTimeFormat option. What the best is like the picture below.

alt

Now I change the shortMonthNames is ["01", "02", "03", "04", "05", ... ], but the code style is not graceful. The formatHumanDate can default match the dateTimeFormat. If it will be that, I think it can be more cooler and powerful! 😄

Emiya0306 avatar Apr 23 '16 03:04 Emiya0306

Thank you for suggestion. We had not given this option because it will be difficult for users to differentiate between Date and Month components, in case of of formats like "MM-dd-yyyy" and "dd-MM-yyyy". We will try to add this later.

nehakadam avatar Apr 24 '16 09:04 nehakadam