Make GenerateDataTime take char pointer like other methods.