Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用日期助手方法将日期时间转换为我的助手类...
但我的结果就像所有日期都只是“刚才”。它只需要系统日期而不是模型..请帮助我...
因为在局部视图中 Model.Helpers.DateHelper.GetFriendlyDate(DateTime.Now)。所以它需要当前日期..
你这样放
<%var createdDate = Dial4Jobz.Helpers.DateHelper.GetFriendlyDate((DateTime)ViewData["CreatedDate"]); %>