i am programming in c# and i have question: how can i get the integer value between a date. for example : 12/6/2010 and 12/18/2010 how can i get at 1st i=6 and in the second i=18
DateTime dt = DateTime.Parse("12/6/2010");
int i = dt.Day;
See: DateTime reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With