Sunday, 28 February 2016

Need a Function That Displays a Derived Date from the Current Date

I have an assignment for an intermediate class and progress has stalled on it. I need to allow a user to enter a payment term and have it subtracted/added to today's date.

  • If the day of the week is Monday through Friday the Due Date is todays date plus Payment Terms.

  • If the day of the week is Saturday then the Due Date is todays date plus Payment Terms minus 1.

  • If the day of the week is Sunday then the Due Date is todays date plus Payment Terms plus 1.

Here is the code on JSFiddle.

This is an example of what the professor wants.

I know it's aggravating to see these posts for a lot of you, but if you could help I'd really appreciate it.



Epic visual tool

Epson 5030UB 2D/3D 1080p 3LCD Projector Submitted February 29, 2016 at 05:03AM by cfoster5 http://ift.tt/1VMkSpM

No comments:

Post a Comment