difference between dates
-
how can i find the difference between two calendar dates to calculate number of days and display it in a label.
-
how can i find the difference between two calendar dates to calculate number of days and display it in a label.
TimeSpan difference = myFirstDate - mySecondDate;
Man who stand on hill with mouth open wait long time for roast duck to drop in
-
TimeSpan difference = myFirstDate - mySecondDate;
Man who stand on hill with mouth open wait long time for roast duck to drop in
thank you for replying its showing an error "Error 3 Cannot implicitly convert type 'System.TimeSpan' to 'string'" what should i do.
-
thank you for replying its showing an error "Error 3 Cannot implicitly convert type 'System.TimeSpan' to 'string'" what should i do.
Mathew P V wrote:
its showing an error "Error 3 Cannot implicitly convert type 'System.TimeSpan' to 'string'"
Eh?! You might like to read the MSDN documentation on TimeSpan to find out how it works and how to get data out of it. No where in my advice would you have got the error above. Just blindly converting things to strings is often unwise.
Man who stand on hill with mouth open wait long time for roast duck to drop in
-
Mathew P V wrote:
its showing an error "Error 3 Cannot implicitly convert type 'System.TimeSpan' to 'string'"
Eh?! You might like to read the MSDN documentation on TimeSpan to find out how it works and how to get data out of it. No where in my advice would you have got the error above. Just blindly converting things to strings is often unwise.
Man who stand on hill with mouth open wait long time for roast duck to drop in
thank you for the valuable reply, i am new to asp.net. please give me some suggestions so that i can improve.
-
thank you for the valuable reply, i am new to asp.net. please give me some suggestions so that i can improve.
Mathew P V wrote:
i am new to asp.net. please give me some suggestions so that i can improve.
If you are asking for help then show code so we can see what you are doing. Asking us to guess based on vague or incomplete descriptions does not (as Dr. Cox [Scrubs] would put it) "help me to help you".
Man who stand on hill with mouth open wait long time for roast duck to drop in
-
Mathew P V wrote:
i am new to asp.net. please give me some suggestions so that i can improve.
If you are asking for help then show code so we can see what you are doing. Asking us to guess based on vague or incomplete descriptions does not (as Dr. Cox [Scrubs] would put it) "help me to help you".
Man who stand on hill with mouth open wait long time for roast duck to drop in
i used
timespan diff=calendar1.selecteddate.substract(calendar2.selecteddate);
and now its working thank you for your valuable suggestion i will do the same.
modified on Tuesday, June 2, 2009 6:06 AM