Find Jobs
Hire Freelancers

Javascript Date Calculator v2

$30-250 USD

Closed
Posted almost 5 years ago

$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 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
24 freelancers are bidding on average $147 USD for this job
User Avatar
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
$300 USD in 5 days
4.9 (490 reviews)
8.7
8.7
User Avatar
BLUE Hello, My name is Sergey. I am Freelancer from Saint Petersburg, Russia. I can help you as an experienced programmer to update your JavaScript and calculate +45 and +180 days properly. 2000+ successfully completed projects speak for me. Links and reviews from my past clients available in my profile. I am an individual, I am not a company in any meaning. I can communicate via Freelancer.com. -- Sergey aka Takereal
$50 USD in 1 day
5.0 (1957 reviews)
8.2
8.2
User Avatar
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 quote final price and time after discussion. I highly value professionalism and hold myself strictly accountable to my clients. I aim to form a long-term working relationship. Please, let me know what is needed to secure this bid! Thank you for your consideration. Asad Sajjad
$140 USD in 7 days
5.0 (104 reviews)
7.9
7.9
User Avatar
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 websites using PHP, Javascript, HTML & several frameworks. As a dedicated full stack developer, I am always available for daily communication and ready for your full response. I am free now, I can start to work in your project immediately. I would love to have an opportunity to discuss with you for further details. Best regards.
$140 USD in 7 days
5.0 (42 reviews)
6.6
6.6
User Avatar
Hi How are you? I read your proposal and i am quite interested in your project I have rich experience in javascript, jquery, I will delivery perfect result on time. I look forward to working with you in good partnership Best regards
$250 USD in 2 days
5.0 (26 reviews)
6.5
6.5
User Avatar
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 arrange an interview with you for detailed discussion. Regards!!
$300 USD in 7 days
4.9 (86 reviews)
6.8
6.8
User Avatar
Hello I have read your description carefully and I'm sure I can complete it in time perfectly. I've rich experience in Web development over 5+ years. I've good knowledge of js frameworks such as Angular, React.js, and PHP frameworks such as laravel, codeignitor,WordPress, Magento ... And also prepared for both full-stack and mean-stack development. What I intend is to provide support on issues after delivery with FREE as well as a future upgrade with low budget. https://www.freelancer.com/projects/mobile-phone/Design-Revamp-Project-for-React/ https://www.freelancer.com/projects/php/Looking-for-react-native-expert-19857130/ https://www.freelancer.com/projects/php/Project-for-Mochuan-19601112/ https://www.freelancer.com/projects/php/Project-for-Mochuan-18938442/ https://www.freelancer.com/projects/react-js/Login-register-webapp-ASP-NET/ https://www.freelancer.com/projects/php/Project-for-Mochuan-19190066/ https://www.freelancer.com/projects/php/Create-CSV-file-using-parshub/ https://www.freelancer.com/projects/php/Project-for-Mochuan-19182464/ https://www.freelancer.com/projects/php/Project-for-Mochuan-19187886/ https://www.freelancer.com/projects/php/Project-for-Mochuan-19119676/ https://www.freelancer.com/projects/php/Project-for-Mochuan-19072706/ I hope your contact to discuss detail on chats. thanks.
$80 USD in 7 days
4.9 (107 reviews)
6.7
6.7
User Avatar
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
$200 USD in 4 days
5.0 (44 reviews)
6.7
6.7
User Avatar
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
$80 USD in 1 day
5.0 (96 reviews)
5.8
5.8
User Avatar
BLUE Hi, Thanks for sharing your requirement here at Freelancer, I will be more than happy to help you. First of all the screenshot and javascript code is missing that you mentioned attached with your requirement. I have reviewed your requirement and understand that you are getting wrong days calculation for some months and I think if we use javascript built in date functions that problem will be fixed because if we are calculating 45 days from 1st December 2019 then it should calculate or add 45 days in the input date and calculate using the built in date function, thus will get the correct 45 days from the input date i.e 14th January 2020 because built in date function gets correct days for the month. One thing would like to mention that I will take payment only after completion of this job, I will first finish this job and then ask you to award this job and then pay me at the same time with your valuable feedback, hope it's fair enough. Regards, Kapil
$120 USD in 2 days
5.0 (45 reviews)
5.3
5.3
User Avatar
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.
$50 USD in 3 days
5.0 (35 reviews)
5.0
5.0
User Avatar
BLUE. I have 10+ years of experience in Javascript. I understand your requirement and I can deliver it in time.
$30 USD in 1 day
4.7 (47 reviews)
4.8
4.8
User Avatar
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.
$100 USD in 2 days
5.0 (11 reviews)
3.3
3.3
User Avatar
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 this job and give you an efficient job that will be very acceptable and presentable. I and my team work on web development and mobile apps and I can assure you that you will never be disappointed"
$140 USD in 7 days
0.0 (1 review)
0.0
0.0
User Avatar
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, JavaScript
$133 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
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 available to update or test your web site and that there may be additional requirements, I'm guessing no more than an hour and a half worth of work. If your implementation is substantially similar to the pen you referenced, it should take much less time to implement and verify and make a minor tweak or two.
$145 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
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 experience in JavaScript and jQuery.
$140 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
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.
$120 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
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 to your requirements. We also have a quality assurance team that will make sure that you are getting best quality work and we will treat your work like our own because we know how important it is to you. The amount we are bidding is reasonable according to the requirements provided by you. Bidding amount may exceed your expected value but will be justified by the output. Feel free to contact us so that we can discuss the complete details and can get started. We are looking forward to hearing from you soon. Regards, Team Softnate.
$120 USD in 4 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Minnesota, United States
5.0
5
Payment method verified
Member since Dec 19, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.