Create date time 2019-11-12 22:45:12.004
DateTime date = new DateTime(2019, 11, 12, 22, 45, 12, 004);
Converting to string format
string date_str = date.ToString("dd/MM/yyyy HH:mm:ss");
DateTime date = new DateTime(2019, 11, 12, 22, 45, 12, 004);
string date_str = date.ToString("dd/MM/yyyy HH:mm:ss");