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...

VulpesRank #55 · 29.2K reputationPosted Apr 14, 2011, 7:31 AM EDT
public DateTime dateEnd = datePawned.AddMonths(10);
Raja KrishnamurthyRank #3,615 · 403 reputationPosted Apr 14, 2011, 7:33 AM EDT
DateTime dueDate = datePawned.AddMonths(10);
HTH
Raja KrishnamurthyRank #3,615 · 403 reputationPosted Apr 14, 2011, 7:34 AM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 14, 2011, 7:38 AM EDT
Tharake Gunatilake43 reputationPosted Apr 14, 2011, 7:58 AM EDT
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..
VulpesRank #55 · 29.2K reputationPosted Apr 14, 2011, 8:10 AM EDT
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 :)
Raja KrishnamurthyRank #3,615 · 403 reputationPosted Apr 14, 2011, 8:24 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Apr 14, 2011, 11:38 AM EDT
Raja KrishnamurthyRank #3,615 · 403 reputationPosted Apr 14, 2011, 12:21 PM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 14, 2011, 12:59 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted Apr 14, 2011, 1:42 PM EDT