Add datetime code

I wrote code to create a datetime variable, but I get an error when I run it. However, when you look at the dataframe it appears to work fine.