How to calculate calendar control?

Posted by Chandru_ra under ASP.NET on 9/14/2010 | Points: 10 | Views : 1401 | Status : [Member] | Replies : 3
am using One text box Calendar control and another Control BasicDateTimePicker control...

chandru


Responses

Posted by: Peermohamedmydeen on: 9/14/2010 [Member] Bronze | Points: 25

Up
0
Down
Hi chandru,

Could you please rewrite your question understandable to others?

Am not able to get your requirement.




Chandru_ra, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Peermohamedmydeen on: 9/14/2010 [Member] Bronze | Points: 25

Up
0
Down
Hi Chandru,

I think you are working with Windows Forms Application. Am I right? But you have chosen the forum category as ASP.NET. Still the question is not clear.

Do you want to calculate the days in between two Calendar controls?

Any how. Consider you 2 DateTimePicker Controls.


TimeSpan TS = DateTimePickerToDate.Value.Date - DateTimePickerFromDate.Value.Date;

Console.WriteLine(TS.ToString());


This TimeSpan TS will return the Time span between 2 Dates.



Chandru_ra, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Santosh4u on: 9/17/2010 [Member] Bronze | Points: 25

Up
0
Down
Hi Chandru
can you plz explain ur doubt clearly....
so that i can give you some solution....


Regards
Santosh




Chandru_ra, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response