how to get current date and time in asp.net using c# code example
Example 1: c# get current date
DateTime now = DateTime.Now;
Example 2: c# datetime current
DateTime now = DateTime.Now;
string strDate = now.ToString("YYYY-MM-dd");
DateTime now = DateTime.Now;
DateTime now = DateTime.Now;
string strDate = now.ToString("YYYY-MM-dd");