Javascript Date Calculator v2
$30-250 USD
Paid on delivery
Simple javascript solution to calculate 45 and 180 days from that input date and display the two dates (month, day, year) and some various text boxes associated with the two outputs.
As soon as the 4 number year is input the output will be generated.
I have included a screen shot and the javascript file. As you can see there is an error with the javascript. The result is correct. Date arithmetic that crosses month boundaries is off by 1 because there's no day 0 in months.
For example, if you input the date of October 1, 2019, you will get the results of:
45 days: Thursday, November 14, 2019
180 days: Sunday, March 29, 2020
But, if you input the date of December 1, 2019, you will get the results of:
45 days: Wednesday, January 15, 2020
180 days: Friday, May 29, 2020
This can not be correct because there are 31 days in December. 31 + 15 = 46? Some sort of miscalculation happens in most months.
The reason you're getting November 14 in the first case is because daylight savings time changes sometime in October. Your afterTime() function treats all days as 24 hours long, but when DST ends we add an extra hour to that day. So you're going from Oct 1 00:00:00 to Nov 14 23:00:00 instead of Nov 15 00:00:00.
Use the built-in date arithmetic in the Date class, it automatically adjusts for this.
This pen here pulls the correct date but it is from the current date and not the actual input dates
[login to view URL]
Can you fix? I will only consider people who start their quote with the word "BLUE".
Project ID: #20348351
About the project
24 freelancers are bidding on average $147 for this job
BLUE Hi, I understood your issue and I need to fix it(As per brief) We are ready to get started right away... Best Regards, LX
HI, I can assist you with Javascript Date Calculator. Here is a sampling of the few of my work contained at my portfolio: https://www.freelancer.com/u/extreamcode.html This is a placehoolder bid, I would be able to quo More
100% Completion Rate and 5 Stars Hi, there. My name is Lee, and I am an experienced web developer. I read your job description, and I am interested in your project. I have 6+ years of experiences in developing websit More
BLUE Hi!! I can surely fix this. I am JavaScript Developer having more then 5 years experience in javascript development. Skills: JavaScript, PHP, WordPress, HTML5/CSS3/Bootstrap3, Jquery, MySql I would like to arr More
blue i can fix it easy and fast as i know the code issue i am a top js expert with 15 years experience Regards
hi i have 4 years experience in like thins kind of job, hi i have 4 years experience in like thins kind of job, hi i have 4 years experience in like thins kind of job
Blue Hi Do leaps years need to be considered as well? It can get messy - I would probably use some sort of library for this. Please let me know if interested.
BLUE. I have 10+ years of experience in Javascript. I understand your requirement and I can deliver it in time.
BLUE Hi sir. I am a full stack php and javascript developer. I am top skilled javascript programmer, I've made many javascript complex applications. So I think I can fix your problem perfectly.
Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned "I can do th More
I would write up an html page with the script to calculate date. I have similar experience while building library management system software and insurance software. Relevant Skills and Experience HTML5 ,CSS3, JavaScri More
BLUE is actually my favorite color. The pen you referenced has the solution but someone just didn't finish putting it all together properly. Given that I don't know anything about the hosting platform or the tools av More
Hi. I understand the problem and can deliver the required end product. I am currently a Frontend Developer for a large E-Commerce in South Africa, and am familiar with these kinds of requirements. I have 3 years of exp More
I am a web developer with 4 years + experience in web development, I read your requirements thoroughly and I believe I can do this work with accuracy. Contact me for further discussions.
BLUE Hi there! We have previous experience similar to your project. Also, we have developed impressive softwares in the past couple years. Therefore, we can provide a perfect development of your application according t More