wooi83

wooi83

  • NA
  • 18
  • 0

convert timespan datedifferents to float or int values .. plzz

Apr 6 2004 3:49 AM
System.DateTime todaysDate = new System.DateTime(d.getYear(),d.getMonth(),d.getDay()); System.TimeSpan dateDiff = todaysDate - DateTime.Parse(e.ListItem.Value); dateDiff = 5.00:00:00 ---> means date differents is 5 days what im doing is trying to get current date and finds the different between the date in datebase. base on the date differences i wish to multiply the date with 2 in order to get the amount of money charged since the due. how to convert 5.00:00:00 <-- in order for me to multiply with float or int value ? pls help..

Answers (1)