Skip to Content
Menu
This question has been flagged
1 Atsakyti
3637 Rodiniai

How to subtract two dates in an Automated Action ?

Portretas
Atmesti
Autorius Best Answer

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 : 



Portretas
Atmesti

We have been looking for that, thank you very much

Related Posts Replies Rodiniai Veikla
1
vas. 23
3197
1
vas. 24
3277
1
spal. 24
1797
2
spal. 24
3060
2
spal. 24
3157