Jump to content
fengche134@hotmail.com

Javascript Date Bug

Recommended Posts

fengche134@hotmail.com

Hello,

I am using Nitro Pro ver 10.0.0.24.

I have a form field named "Date" with the following date: 04/21/2020

I have the following code:

var formDate = this.getfield("Date").value

startDate = util.scand("mm/dd/yyyy", formDate)

app.alert(startDate, 1)

The date that shows up in the message box is May 21 2020.

If I change the date in the form field to 03/21/2020 then the date that shows up the message box is March 21 2020. It appears this bug only shows up in certain months.

Is there a fix to this?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.