I\'m using an EditorTemplate DateTime.ascx
in my ASP.NET MVC 2 project.
<%@ Control Language=\"C#\" Inherits=\"System.Web.Mvc.ViewUserControl
First idea that comes to mind =>
Template:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%: Html.TextBox(String.Empty, Model.ToString("M/dd/yyyy h:mm tt")) %>
masterpage or shared external JS file:
function MakeSureAnyTimeIsIncluded(){
if (!anyTimeIsIncluded)
//document.write(