A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
IE DatePicker displaying NAN while adding days to a Date
Joined: Aug 01, 2009
Jun 12, 2013 23:27:56
In Internet Explorer DatePicker displaying NAN while adding days to a Date.But for Google Chrome and Mozilla its working fine.Please advice is it a bug of some kind?
endDate.setDate(endDate.getDate()+duration); var dd=endDate.getDate(); alert("dd "+dd); var mm=endDate.getMonth()+1; alert("mm "+mm); var y=endDate.getFullYear(); alert("y "+y); var formattedEndDate=y+'-'+mm+'-'+dd; $("#enddate").val(formattedEndDate);
is there anything wrong with the code?
Joined: Nov 08, 2001
Jun 14, 2013 07:38:51
You are going to have to show more context. What is endDate and what is a duration that fails.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: IE DatePicker displaying NAN while adding days to a Date
DatePicker being displayed in the backside of child web page
How to display a calendar in struts2 and pass a value to action class
how to pass data from one frame to other
Not able to download JQuery Plugins
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015