if(day.toString().length == 1) day = "0" + day; if(hou.toString().length == 1) hour = "0" + hou; if(min.toString().length == 1) min = "0" + min;