Jump to content


Photo

futrue date


  • Please log in to reply
1 reply to this topic

#1 zawadi

zawadi
  • Members
  • PipPip
  • Member
  • 25 posts
  • LocationChippenham UK

Posted 07 August 2006 - 12:20 PM

Hi, I have been working on a help system and have got a lot of it done. But I am now stuck, I want to take a date/time stamp and see if it is the working day and if not then add hours and minuets to it to get a date/time stamp in the next day. but Ican see the logic, HELP ???
That's the beauty of asymmetric warfare. You don't need a lot of money, or an army of people. You can do it from the comfort of your living room, with a beer in your hand.

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 07 August 2006 - 12:27 PM

1) Check if the time stamp is a working day using the date() function.
2) If not add 60*60*24 (the seconds in one day) to the timestamp.

Orio.
Think you're smarty?

(Gone until 20 to November)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users