Need help with converting to datetime object

Hi, could anyone advise, isn’t it necessary to convert both the appt_end_date and apps_start_date to datetime objects?

Hi @deepakjs3193, welcome to the community! You’re right that both need to be converted to datetime objects, but you actually already converted appt_start_date to a datetime object a few screens before this one! All there was left to do here was to also convert the appt_end_date so that then you could find the appointment lengths.

1 Like

Hi @april.g, thank you for the warm welcome and clarifying on appt_start_date, this was a great help with the learning.

1 Like