Convert string to Date - CSharp System

CSharp examples for System:DateTime Format

Description

Convert string to Date

Demo Code


using System.Text;
using System.Web.UI.WebControls;
using System.Collections.Generic;
using System;//  w  ww.j  av  a  2  s  . co  m

public class Main{
        public static DateTime Convert2Date(string Date)
        {
            DateTime dt = Convert.ToDateTime(Date);
            return dt;
        }
}

Related Tutorials