I have a formview in which i am displaying the number of people who bought a product, the time left to buy the product etc. I am stuck up on how to display the time time left to buy the product. I have the date of expiry in db. I want to subtract that date from current date time to get the time left to buy the product. How do i do it? I am loading everything like number of people who bought etc dynamically from db onto the page using Eval. Is there a similar functionality to display the time left?
Pl help me.
Thanks in advance.