Hi,

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.

thankxxxx

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.

commented: Nice tip! +7
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.