Wednesday, June 15, 2022

Datetime parsing C# ASP.NET current date today date

  DateTime paydt=DateTime.ParseExact(txtDate.Text!=""?txtDate.Text:DateTime.Now.ToString("dd/MM/yyyy"),"dd/MM/yyyy",System.Globalization.CultureInfo.InvariantCulture);

No comments:

Post a Comment