Forums

Date Time Picker - Format problems

emixion 30 Oct, 2012
Hello,

For an chronoforms e-mail form I want two different formats: Date (d-m-Y) and Time (H:i).
But when I edit the date format it makes the selected time to an date, it is working with an older version, but in the new version it does not.

Working: http://klompgroep.nl/contact/offerte-opvragen

Not working: http://trouwenmetdonna.nl/afspraak

I have read different forum topics and tried pretty much all the suggested fixes but is still isn't working.
GreyHead 30 Oct, 2012
Hi emixion,

I'm sorry I don't understand your question. Your form appears to have a datepicker which is working correctly and a text input where the user can enter a time.

I don't see a timepicker anywhere.

Bob
GreyHead 30 Oct, 2012
Hi Max,

What is happening is that the d-m-y format is being applied to all of the datepickers. If you look at the page source you will see
new DatePicker('.cf_time_picker', {pickerClass: 'datepicker_dashboard', inputOutputFormat: 'H:i:s', timePickerOnly: true, allowEmpty: true, format: 'H:i:s', format: 'd-m-Y'});


I think that the answer is to use the Custom DatePicker action for one of these to keep the settings separate.

Bob
This topic is locked and no more replies can be posted.