ic_char_datetime function

Convert datetime object to character string