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!

Convert string to date in javascript

skapexJul 29 2013 — edited Jul 31 2013

Hi,

On my apex page I have a hidden item P1_STORE_DT which stores date in '01-AUG-13' format.

Now what i need to do is convert this into date in javascript

On page load i execute below code

var d=new Date($v('P1_STORE_DT'));

alert(d);

--further code

new Date works fine in chrome.

But in IE it shows NaN.

How to convert my string into specific format so that it works fine in IE and chrome.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2013
Added on Jul 29 2013
6 comments
3,027 views