A simple DateUtil class in cpp