Skip to content

Instantly share code, notes, and snippets.

@AshikNesin
Created March 30, 2014 17:44
Show Gist options
  • Save AshikNesin/9876640 to your computer and use it in GitHub Desktop.
Save AshikNesin/9876640 to your computer and use it in GitHub Desktop.
Convert Date to DD/MM/YYYY format in C#
DateTime date = DateTime.Today;
int day = date.Day;
int month = date.Month;
int year = date.Year;
txtTodayDate.Text= (day.ToString() + "/" + month.ToString() + "/" + year.ToString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment