Java Sql Date From String Python Functions Vs Methods