Forum Moderators: coopster & phranque

Message Too Old, No Replies

how to get current system

         

sumeet ruiwale

9:35 pm on Aug 16, 2005 (gmt 0)

10+ Year Member



How do i get the current date.. in yyyymmdd format from the system. i need to subtract a date i have from the current date to get number of days left.
like i am gettng a date as 20051004 , which october 10th ,2005 . now todays dte is aug 16, 2005 i want to minus the date i get from the current date and get how many days r left.

can u help me with that.

VectorJ

3:40 am on Aug 17, 2005 (gmt 0)

10+ Year Member



The best way, in order to take into account things like calculations that span months or leap days, is to use the Date::Manip or Date:Calc module. If speed isn't of primary importance. Date::Manip is a great module.