Adding days to a Date field

markdown14.2

 

Given a Date field, and a Number field with the number of days to be added, you can create a Date field with the a new date.

Just copy paste the following code to a Calculation field:

 

moment(@Date).add(@Days to add:, ‘days’).toDate()

 /* ——————————————————————————————————-

Created by BendixKiel ApS – Copenhagen based Podio Preferred Partner -with more than 6 years of experience in helping organizations implement Podio. Please feel free to contact us if you need help evaluate, structure or implement Podio in your organization.

BendixKiel ApS www.bendixkiel.org +45 71 99 05 80 anders@bendixkiel.org

———————————————————————————————————– */

 

Make sure you replace the @Date with your app’s old Date field and @Days to add with your app’s number of days Number field.

Thus, the following changes in “Modify Template”:

markdown14.1

give us the following result:
markdown14.2

 

Do you want to remove days from a given Date? Just put a negative number in your Number field, add a minus “-” before the number.
markdown14.3

No comments yet.

Leave a Reply