在我的 vb.Net 项目中,我使用下面的代码来设置 MyApplication 的日期格式
Private Sub MyApplication_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
Dim newculture As System.Globalization.CultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture.Clone()
newculture.DateTimeFormat.ShortDatePattern = "dd/MM/yyyy"
newculture.DateTimeFormat.DateSeparator = "/"
System.Threading.Thread.CurrentThread.CurrentCulture = newculture
End Sub
我如何在 c# 中做到这一点?