I am newbie in odoo 8 , I add a date field entry and exit date and how to calculate the date of entry and exit dates
Se marcó esta pregunta
3
Respuestas
4482
Vistas
Mr.achuthan I am still confused with answer , Mr.achuthan could give a few examples of the answers above
d_frm_obj = datetime.strptime(entry_date, DEFAULT_SERVER_DATETIME_FORMAT)
d_to_obj = datetime.strptime(exit date, DEFAULT_SERVER_DATETIME_FORMAT)
diff = d_to_obj - d_frm_obj
print diff.days //provides days
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse