Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3844 Vistas

How to subtract two dates in an Automated Action ?

Avatar
Descartar
Autor Mejor respuesta

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
Descartar

We have been looking for that, thank you very much

Publicaciones relacionadas Respuestas Vistas Actividad
1
feb 23
3420
1
feb 24
3480
1
oct 24
2019
2
oct 24
3389
2
oct 24
3342