﻿
function GetTime()
{
    var currentTime = new Date();
    var second = currentTime.getSeconds()+"";
    var hour = currentTime.getHours()+"";
    var minute = currentTime.getMinutes()+"";
    return hour+minute+second;
}
//Xu ly Ngay thang
function isDate(year, month, day) 
{
    month = month - 1; // javascript month range 0 - 11
    var tempDate = new Date(year,month,day);
    if ( (year == tempDate.getFullYear()) && (month == tempDate.getMonth()) && (day == tempDate.getDate()) ) 
    {
        return true;
    } 
    else 
    {
        return false;
    }
}