Question

I am using date helper method for converting datetime into my helper class...

But i have result like for all date to "a moment ago" only. It takes only the system date not from model.. please help me...

Was it helpful?

Solution

Because in partial view Model.Helpers.DateHelper.GetFriendlyDate(DateTime.Now). so it takes current date..

You put like this,

<%var createdDate =  Dial4Jobz.Helpers.DateHelper.GetFriendlyDate((DateTime)ViewData["CreatedDate"]); %>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top