Use datetime structures instead of strings