3,035 questions
string Date = DateTime.Now.ToString("ddMMyyy");
Produces:
26082021
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How can I use DateTime.Now.xXx to fit into a string Date?:
string Date = Date.Time.Now.Day.ToString + DateTime.Now.Month.ToString + DateTime.NowYear.ToString;
I want it to work like this...
string Date = DateTime.Now.ToString("ddMMyyy");
Produces:
26082021