Fix some minor issues related to print and date parsing