I am working one live project where I use asp.net as front end. I want to convert a string such as "YYYYMMDD" or "DDMMYYYY" in DateTime object. If you are having any suggestions then reply me. It can helpful to me.
Here is my code:
Code:using System; using System. Collections. Generic; using System. Text; using System. Globalization; namespace ConsoleApplication1 { class Program { static void Main (string [] args) { string date = "051209"; DateTime datetest = new DateTime () ; datetest = Parse (date); } } }



Reply With Quote
Copyright Techfuels
Bookmarks