The code I currently have is given as such, and basically what I want to do at the end of this is to get a datetime object which I will be using to query a database.