CSharp examples for System:DateTime Format
Date To Date Time String
using System.Text; using System.Linq; using System.Collections.Generic; using System;//from w ww . j av a2 s.com public class Main{ public static string DateToDateTimeString(DateTime dateTime) { return string.Format("{0}{1}{2}", dateTime.ToString("d"), Environment.NewLine, dateTime.ToString("t")); } }