Guf*_*ffa 29

您可以使用自定义格式字符串.例:

string formatted = DateTime.Now.ToString("MMddyyyyHHmmssfff");
Run Code Online (Sandbox Code Playgroud)