Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3464 Zobrazení

How to subtract two dates in an Automated Action ?

Avatar
Zrušit
Autor Nejlepší odpověď

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
Zrušit

We have been looking for that, thank you very much

Related Posts Odpovědi Zobrazení Aktivita
1
úno 23
2960
1
úno 24
3079
1
říj 24
1568
2
říj 24
2829
2
říj 24
2922