Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem when setting value of datepicker with time in javascript

steffi_mJul 5 2018 — edited Jul 5 2018

I have two datepickers, a start and an end date. Both have a format mask of DD-MON-YYYY HH24:MI

When the start date changes, I want to set the value of the end date = start date. I have a dynamic action on change of the start date and try to set the value of the end date in javascript. But the result is a incorrect value of for example 14-Sep-2018 HH:ii and when I open the datepicker, the wrong date is preselected.

datepicker.png

JS Code:

var startDate = $v('P1_START');

//console.log(startDate);

$('#P1_END').datepicker('setDate',startDate);

Link to Application:

https://apex.oracle.com/pls/apex/f?p=104966:1:8255151573963:::::

User + pw: demo

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 2 2018
Added on Jul 5 2018
2 comments
295 views