I am new in MVC3 Razor and want to show running time on a view (index.cshtml). I use a javascript function and put it in _Layout.cshtml so all other \"home\" views can use
The last line of the datum function should return the time rather than setting the innerHTML:
return 'Jetzt ist: ' + stunden + ':' + minuten + ':' + sekunden;
and your HTML can then be something like this:
The time is: