Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3492 Lượt xem

How to subtract two dates in an Automated Action ?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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 : 



Ảnh đại diện
Huỷ bỏ

We have been looking for that, thank you very much

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 23
2972
1
thg 2 24
3099
1
thg 10 24
1580
2
thg 10 24
2834
2
thg 10 24
2935