date_get_part1 function

Get part1 of date value