Quantcast
Viewing latest article 19
Browse Latest Browse All 42

Answer by Mani for How to remove time portion of date in C# in DateTime object only?

static void Main(string[] args){    string dateStrings =  "2014-09-01T03:00:00+00:00" ;    DateTime convertedDate = DateTime.Parse(dateStrings);    Console.WriteLine("  {0} ----------------- {1}",    convertedDate,DateTime.Parse(convertedDate.ToString()).ToString("dd/MM/yyyy"));    Console.Read();}

Viewing latest article 19
Browse Latest Browse All 42

Trending Articles



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