Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Datetime ParseExact not working

$
0
0

Hi,

I want to convert the datetime from one format to other one..

Below is my code..

	inputFormat = "yyyy'-'mm'-'dd hh':'mm':'ss':'fffffff";	

string inputDateString="2012-12-19 04:03:20:0123456";	

	DateTime.ParseExact(inputDateString, inputFormat, System.Globalization.CultureInfo.InvariantCulture).ToString(ouputFormat);	
	
		

But this throws formatexception. Waht is wrong?


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>