#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    2
    Rep Power
    0
    I need to create a function in php that gives the number of working days (monday .. friday) between 2 given dates.
    can someone help me with this one.??

    Thanx
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Niteroi, RJ, Brazil
    Posts
    30
    Rep Power
    14
    Dunno exactly but I think you should get the UNIX time (those long numbers => 964124743) from one date, from another, subtract and generate a date from that, so you will have days, months, etc, like a normal date.

    Dunno if works!! Good luck!

    ------------------
    Eduardo Teixeira Cardoso
    PHP Programmer from Brazil
    idnotfound@vircio.com.br

IMN logo majestic logo threadwatch logo seochat tools logo