im having problem with my string of time.. i wanted to format it so that it will display a more neat design.. can anyone help me with this one
here's my code:
ViewBag.startTime = (from a in test where a.ID == clientCustomerPositionShiftnfo.ID select new{ a.StartTime}) .AsEnumerable() .Select(a => a.StartTime != "Anytime" ? Convert.ToDateTime(a.StartTime).ToString("HH:mm:ss") : a.StartTime.Trim()); In my view:
<input type="text" id="txtStartTime" name="txtStartTime" class="inputLong" value="@ViewBag.startTime" disabled="disabled"/>
2[<>f__AnonymousTypeb1[System.String],System.String]"