refactor extract dates
add half day example