Skip to content

Instantly share code, notes, and snippets.

@AshikNesin
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save AshikNesin/9870411 to your computer and use it in GitHub Desktop.

Select an option

Save AshikNesin/9870411 to your computer and use it in GitHub Desktop.
Display only DATE & assign it to TextBox in C#.NET
DateTime dtCurrentDate = new DateTime();
dtCurrentDate = DateTime.Now;
txtCurrentDate.Text = dtCurrentDate.ToShortDateString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment