1

Here is how I am setting DatePicker in js:

$('#created_at, #updated_at').datepicker('option', 'dateFormat',
                                         'dd.mm.yy 00:00:00');

What I am trying to achieve is for DatePicker to display date in a format like this:

12.02.2010 00:00:00

So basically just add "00:00:00" string after the date. But it's not working. Why?

1 Answer 1

1

To answer your why question, it's not in the allowed list of formats. Since it's a date picker and not a time picker, I guess the issue doesn't come up enough to warrant adding the weight to the library to support it.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, I just add the time in PHP on server side.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.