Posted By

inreflection7 on 07/01/11


Tagged

time date search smart kentico


Versions (?)

Kentico - Smart Search Date w/o Time


 / Published in: ASP
 

Wanna lose the time portion of the date something was created in a smart search result!?!?

  1. <%-- Replace --%>
  2.  
  3. <%# GetDateTimeString(ValidationHelper.GetDateTime(Eval("Created"), DateTimeHelper.ZERO_TIME), true) %>
  4.  
  5. <%-- With --%>
  6.  
  7. <%# ValidationHelper.GetDateTime(Eval("Created"), DateTimeHelper.ZERO_TIME).ToShortDateString() %>

Report this snippet  

You need to login to post a comment.