I have two different dates that I am pulling from a database using a SQL query. Im looking to do transformations in Python, but the two main dates I want to work with are stored in different formats. The first date is of the date format (YYYY/MM/DD) the other is of (YYYY/MM/DD HH:MM:SS) format. I want a difference in days so the DATETIME is irrelevant on the second date. I was wondering what is the easiest way to do this in python? Ideally, I would like to automate this, where I create a DATE format of the DATETIME variable, and take the difference between the two DATES.

I've tried the following but I am also getting errors since I am dealing with Series. I am trying to get the delta for every row.

```
df.delta = (df.DATETIME - df.DATE)

```

and

```
df.delta = datetime.timedelta(df.DATETIME - df.DATE)

```