get datetime and enddatetime

get datetime and enddatetime