to_html formats dates before year 1900
creating separate function for calling strftime on dates before 1900
make comment pep8 compliant
Merge pull request #1839 from dimagi/replace_strftime

to_html formats dates before year 1900