Login +

Documentation

SLS_Date::isValidDate

Since SillySmart 1.0

Description

Check if is valid date
static bool isValidDate ( string $month, string $day, string $year);

Parameters

  • string $month
    the month number
  • string $day
    the day number
  • string $year
    the year

Return

bool $valid
true if yes, else false

Exemples

  •  var_dump(SLS_Date::isValidDate("04","12","1972"));
     // will produce : true
  •  var_dump(SLS_Date::isValidDate("02","29","1995"));
     // will produce : false

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.