remove_unnecessary_part_of_date function

Get substring of date to eliminate unnecessary part