Better display DatePartial

some changes in sample