If there isn't a helper library to help you with date conversion (the Parse, and ParseExact methods of the DateTime object are quite flexible), you can do it with relatively simple string operations. Assuming C# is the language, and MVC the backend, here is a basic example and the result from it is attached below.
DateTime actualDate = new DateTime(int.Parse(dateSegments[0]), int.Parse(dateSegments[1]), int.Parse(dateSegments[2].Split('T')[0]));
string finalDate = actualDate.ToString("dd / MM / yyyy"); //note the spaces around the slashes, as per the format provided in the question
ViewData["origDate"] = oracleDate;
ViewData["withSlashes"] = dateWithSlashes;
ViewData["desiredResult"] = finalDate;
ViewData["actualDateObject"] = actualDate;
return View();
}
@ViewData["origDate"]
<br />
@ViewData["withSlashes"]
<br />
@ViewData["desiredResult"]
<br />
@ViewData["actualDateObject"]
Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.