Hi again gpthakur,
Hope this one works! try this one instead:
string date = DateTime.Now.ToString("mm-dd-yyyy");
string time = DateTime.Now.ToString("hh:MM:ss.fff");
string result = date + " " + time;
Please mark this solution as solved it fixes your problem.
Best Regards,
Eduard