int checkdate(int month, int day, int year);返回值:
有效:true
无效:falseyear = 0..32767
month = 1..12

解决方案 »

  1.   

    bool checkdate(int month, int day, int year)Returns TRUE if the date given is valid; otherwise returns FALSE. Checks the validity of the date formed by the arguments. A date is considered valid if: year is between 1 and 32767 inclusive 
    month is between 1 and 12 inclusive 
    Day is within the allowed number of days for the given month. Leap years are taken into consideration. 测试所给出的日期是否符合标准。
      

  2.   

    checkdate()验证日期的正确性。语法: int checkdate(int month, int day, int year);传回值: 整数函式种类: 时间日期内容说明 若日期是有效的则传回 true,若日期有问题,则传回 false。本函式可以用来检查日期是否有效。有效范围如下:年 为 0 至 32767 年
    月 为 1 至 12 月
    日 则随着月份及闰年变化