Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Bonni Garcia   on Jul 21 In Asp.net Category.

  
Question Answered By: Funsani Chalthoum    on Jul 21

When you subtract two dates you end up with a TimeSpan object. So,
lblPageCreationTime.Text = start_time - end_time is probably saying
something like the types are incompatible? Try doing something like this:

lblPageCreationTime.Text = (start_time - end_time).ToString()

Share: 

 
 
Didn't find what you were looking for? Find more on Time Difference for Page Creation time Or get search suggestion and latest updates.


Tagged: