date and time show system date and time c# code example
Example: c# datetime current
DateTime now = DateTime.Now;
string strDate = now.ToString("YYYY-MM-dd");
DateTime now = DateTime.Now;
string strDate = now.ToString("YYYY-MM-dd");