MVC.NET milliseconds get lost when using Html.hidden on a DateTime LastUpdated column for version tracking

后端 未结 5 1994
小鲜肉
小鲜肉 2021-01-12 15:30

Question in short:

How tot do this in MVC.NET?

Question in long version:

Im trying to use a DateTime column in a SQL Table for version tracking (this

5条回答
  •  甜味超标
    2021-01-12 15:47

    Alternative approach: don't use a tag helper method at all, just write the tag directly into your page template and insert the formatted value, including ms:

    
    

    This will render output in the form:

    
    

提交回复
热议问题