Found error in Pdate logic