How do I get a dattime format in C# that will look like this:
2011-09-01 00:00:00:000
1 Replies - 2062 Views - Last Post: 22 September 2011 - 02:19 PM
#1
How do I get a dattime format in C# that will look like this:
Posted 21 September 2011 - 09:24 PM
Replies To: How do I get a dattime format in C# that will look like this:
#2
Re: How do I get a dattime format in C# that will look like this:
Posted 22 September 2011 - 02:19 PM
This will show the current date with the time as you want it.
You should take a look at Custom Date and Time Formats.
DateTime date = DateTime.Now.Date;
MessageBox.Show(date.ToString("yyyy-MM-dd HH:mm:ss:fff"));
You should take a look at Custom Date and Time Formats.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|