Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<%# System.DateTime.Now.Subtract(Convert.ToDateTime(Eval("Date"))).Minutes + " minutes ago" %> 


If the time is 1hr and 30 mints then it shown only 30 mints.

How can i solve this.
Please help.

Thanks in advance
Posted
Updated 21-May-11 2:09am
v2
Comments
Sergey Alexandrovich Kryukov 22-May-11 0:22am    
You should not re-port.
--SA

1 solution

By not asking for only the minutes portion of the datetime ? I am not sure if there's a TotalMinute property, or if you need to write code to do the conversion.
 
Share this answer
 
Comments
rahul dev123 21-May-11 8:13am    
I also test with TotalMinute but its not working
Ankur\m/ 21-May-11 9:18am    
His first question was how to get this working. I answered it. And now the next step. :|

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900