I have a question regarding the date time in C#.
I want to get the date and the time in two digit 4 as 08.45am 27/07/2010.
How can I get it like this.
You can specify a format string when using Datetime.ToString() to set how the string is constructed.
Check out this link, has a very handy list of possible format strings and a reference for building your own.
We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.