Date Calculations

Learn how to calculate the number of days between two dates and how to add or subtract days from a date using Corvid (a.k.a. Wix Code). 

This example shows you how to perform date based calculations such as working out the number of days between two dates or find the date which is 'x' days in the future or past. Try the example below.

#iptDate
Try it!
Select a date to start!
#txtDateDiff
#txtDateAdd
Select a date to start!
Please wait ...
Disclaimer: To the best of our knowledge, this code works for its stipulated purpose. If you find an error in our code, or know of a better way to achieve the same result - please contact us! All our code snippets come with full support to help you implement them on your own website - simply contact us for help.
  • Facebook Social Icon
© CorvidCodeBank