使用ParseExact返回英国格式的日期

时间:2018-10-01 13:40:07

标签: c#

我需要使用以下格式将Ut格式的日期时间作为即时通讯格式,但仍返回美国格式:

 CultureInfo ukCulture = new CultureInfo("en-GB");
 DateTime myDateTime = DateTime.Parse("18/09/2018", ukCulture.DateTimeFormat);

返回09/18/2018

0 个答案:

没有答案