Use datetime object instead of string

Use datetime object instead of string for nf_get_begin_date and
nf_get_end_date