I am troubleshooting a time-card website using the following code early in the views:
@{
ViewBag.Title = "Clock In\\Out System";
var lvDate = System.DateTime.Now.ToShortDateString();
var lvTime = System.DateTime.Now.ToShortTimeString();
...
}
I think this is client time, I'm not sure how it is since Razor is supposed to be rendered at the server. Is this client time? Additionally, what is the simple and right way to collect client local time in a web page? I've been told there is a known compatibility issue with iOs and we need to support mobile, so I think I want to do this through javascript.