Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3515 Weergaven

How to subtract two dates in an Automated Action ?

Avatar
Annuleer
Auteur Beste antwoord

Here is an automated action that calculated the number of days between twos dates. As the datetime module is available everywhere, it's possible to use it in the automated action. Here is the python expression you can copy/past that return an integer.

(record.x_studio_end_date - record.x_studio_start_date).days 

Result: 

The 'Number of days' is calculated automatically with the Automated Action




The automated action : 



Avatar
Annuleer

We have been looking for that, thank you very much

Gerelateerde posts Antwoorden Weergaven Activiteit
1
feb. 23
3011
1
feb. 24
3138
1
okt. 24
1658
2
okt. 24
2870
2
okt. 24
2985