How do I get a dattime format in C# that will look like this:

2011-09-01 00:00:00:000

myDateTimeValue.ToString("yyyy-MM-dd hh:mm:ss:fff");
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.