Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3460 Näkymät

How to subtract two dates in an Automated Action ?

Avatar
Hylkää
Tekijä Paras vastaus

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
Hylkää

We have been looking for that, thank you very much

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
helmik. 23
2956
1
helmik. 24
3072
1
lokak. 24
1566
2
lokak. 24
2824
2
lokak. 24
2919