Hi!
My problem is given the date today… I want to subtract 2 days from it…
And also for example i get
dateToday.getDay()
…getMonth()
…getYear()
Result when i print them:
Month:5
Day: 3
Year: 105
this is the actual date:
Wed Jun 29 12:14:03 GMT+08:00 2005
i remember my prof said that just add example in the year its 105, to make it 2005 just add 1900. But the problem rises in the DAY… the actual DAY is 29 and i got 3 so i added 26 to 3 to make it 29 but when i changed the month day+26 is wrong…
Pls help me on this
Thanks so much!