date - how to use datehelper methods with view -


i using date helper method converting datetime helper class...

but have result date "a moment ago" only. takes system date not model.. please me...

because in partial view model.helpers.datehelper.getfriendlydate(datetime.now). takes current date..

you put this,

<%var createddate =  dial4jobz.helpers.datehelper.getfriendlydate((datetime)viewdata["createddate"]); %> 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -