0

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

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Geekitygeek
1

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.

Votes + Comments
Nice tip!
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.