Added support of custom format in `formatted` argument for `get_date` method