Format Time as ##/##/## (2)
using System; using System.Collections.Generic; using System.Text; class Utilities { public string FormatDate(string date) { string outDate = ""; if (date.ToCharArray().Length == 6) { outDate = date.ToCharArray()[0].ToString() + date.ToCharArray()[1].ToString() + "/"; outDate += date.ToCharArray()[2].ToString() + date.ToCharArray()[3].ToString() + "/"; outDate += date.ToCharArray()[4].ToString() + date.ToCharArray()[5].ToString(); } else outDate = "00/00/00"; return outDate; } }