www.webdeveloper.com
Results 1 to 2 of 2

Thread: calculate days between 2 dates..

  1. #1
    Join Date
    Jan 2004
    Location
    Kuala Lumpur
    Posts
    4

    Exclamation calculate days between 2 dates..

    emmmm...firstly Thanks for viewing this thread...

    recently i managed to get a code to calculate number of days from 2 dates given...for e.g (start date -> 01-08-2004) (end date -> 01-13-2004) the result was 6 days !!!...

    but the problem wuzz..this number of days include (saturday and sunday)..but my objective is to exclude those days...until now i cant find the solution....that means from example given above i would like the number of days should be 4 days not 6...... ...

    arghh i really dont know how to exclude those days..can someone help me out????? pleasssee...Thanks....
    -BoB AdLin-

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,120
    you may have to write a cstome function that will go thru the days and string sat and sun from them and then get the diff
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles