Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3497 Visualizzazioni

How to subtract two dates in an Automated Action ?

Avatar
Abbandona
Autore Risposta migliore

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
Abbandona

We have been looking for that, thank you very much

Post correlati Risposte Visualizzazioni Attività
1
feb 23
2976
1
feb 24
3111
1
ott 24
1597
2
ott 24
2838
2
ott 24
2941