1
Answer

convert timespan datedifferents to float or int values .. plzz

Ask a question
wooi83

wooi83

20y
8.2k
1
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)