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...
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...
This is tagged as UWP but appears to be a C# question, not a UWP question.
@Voytec-6484 Could you please take a look at SimpleSamples's answer. It should be able to solve your issue.
string Date = DateTime.Now.ToString("ddMMyyy");
Produces:
26082021
@Voytec-6484 You could consider accepting @SimpleSamples 's reply as answer if his reply solves your issue.
7 people are following this question.