Asp.net: DateTime Eval String formatting
With the following code you can format a DateTime within a Databind.
<%# DateTime.Parse(Eval("DateModified").ToString()).ToString("MM-dd-yyyy")%>
With the following code you can format a DateTime within a Databind.
<%# DateTime.Parse(Eval("DateModified").ToString()).ToString("MM-dd-yyyy")%>
Pieter is Technical Marketing Manager for Sitecore Netherlands and owner of Gaatverweg.nl. He has more than ten years experience with software developing in multiple programming languages and with different Content Management Systems. Before joining Sitecore Pieter was a lead developer for multiple Sitecore and .Net projects, he joined Sitecore in 2011 as an Solution Architect in The Netherlands, after two years as an Solution Architect he joined the Technical Marketing department. In the role as Techinical Marketing Manager he is responsible for the Global MVP program and the Sitecore technical branding strategy. You can follow Pieter on twitter: @pieterbrink123 or Google+
[...] using Sitecore Rocks Query. There are some really handy blog post ...
[...] libraries and it proved super useful ever since. I’ve also rece ...
I haven't tried this yet, but what about XDocument.ReadFrom(new XmlNode ...
RT @kayeeNL: For those who missed it: a new #Sitecore Module: Sitecore ...
Completely spam free, opt out any time.
0 Responses to Asp.net: DateTime Eval String formatting