I\'m trying to get dates based on certain conditions to fill a datetime variable, but all I\'m getting out is NaT values in the vairable and I can\'t figure out why, is some