Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3627 Tampilan

How to subtract two dates in an Automated Action ?

Avatar
Buang
Penulis Jawaban Terbai

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
Buang

We have been looking for that, thank you very much

Post Terkait Replies Tampilan Aktivitas
1
Feb 23
3190
1
Feb 24
3271
1
Okt 24
1796
2
Okt 24
3053
2
Okt 24
3155