How to

parse DateTime in exact/specific format

Published: 20. October 2011 | Updated: 26. October 2011
License: Microsoft Public License (MS-PL)
Categories: Converting » DateTime
Tags: C# Conversion DateTime Text
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Globalization;

Code

DateTime dateTime = DateTime.ParseExact("16062011", "ddMMyyyy", CultureInfo.InvariantCulture);
Send us feedback about this snippet »



Related Snippets: