Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4194 Widoki

How to subtract two dates in an Automated Action ?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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 : 



Awatar
Odrzuć

We have been looking for that, thank you very much

Powiązane posty Odpowiedzi Widoki Czynność
1
lut 23
3822
1
lut 24
3790
1
paź 24
2346
2
paź 24
3937
2
paź 24
3724