'how to add an extra day to the iso format date in javascript

Current date Format :2016-05-10T06:34:17Z,I need to add 10 days to the current date ie..2016-05-20T06:34:17 in javascript or in angularjs.



Solution 1:[1]

One Liner Solution:

  • Today:

    today = new Date().toISOString()

  • Yesterday:

    yesterday = new Date(new Date().setDate(new Date().getDate() - 1)).toISOString()

  • Tomorrow:

    tomorrow = new Date(new Date().setDate(new Date().getDate() + 1)).toISOString()

Tip: You can add or subtract days to get the exact date from today.

Solution 2:[2]

I would recommend the following Solution:

  1. Edit the: /etc/httpd/conf/extra/httpd-userdir.conf file Change:

    AllowOverride Option1 Option2 Option3 
    

to:

AllowOverride All
  1. Save and restart apache:

    sudo systemctl restart httpd

  2. Test it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2