public DateTime datePawned = Convert.ToDateTime("10/12/2010");
public TimeSpan duration;
public DateTime dateEnd;
if the duration is 10 months and i have an integer 10..
How can i get the end date?
Plz help me..
I'm a biginner...
public DateTime dateEnd;
if the duration is 10 months and i have an integer 10..
How can i get the end date?
Plz help me..
I'm a biginner...
Raja KrishnamurthyPosted Apr 14, 2011, 11:33 AM
DateTime dueDate = datePawned.AddMonths(10);
HTH
VulpesPosted Apr 14, 2011, 11:31 AM
public DateTime dateEnd = datePawned.AddMonths(10);
Suthish NairPosted Apr 14, 2011, 5:42 PM
VulpesPosted Apr 14, 2011, 4:59 PM
Raja KrishnamurthyPosted Apr 14, 2011, 4:21 PM
Suthish NairPosted Apr 14, 2011, 3:38 PM
Raja KrishnamurthyPosted Apr 14, 2011, 12:24 PM
VulpesPosted Apr 14, 2011, 12:10 PM
Although it's not the ideal place to learn anything, you might get some benefit from reading the MSDN docs on the DateTime (http://msdn.microsoft.com/en-us/library/system.datetime.aspx) and TimeSpan (http://msdn.microsoft.com/en-us/library/system.timespan.aspx) structures. You'll then be able to compete with Raja and myself to answer these questions first :)
Tharake GunatilakePosted Apr 14, 2011, 11:58 AM
Am i asking silly questions dr?
But these are big for me...
I'm studying C# by my self....
So i nd ur help...
Thank you very much..
VulpesPosted Apr 14, 2011, 11:38 AM
Raja KrishnamurthyPosted Apr 14, 2011, 11:34 AM