Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
var start = new Date('12:30').getTime();
var now = new Date().getTime();
//var end = new Date(2012,6,21,2).getTime();
if( (start < now )) {
  alert("opened");
}
else {
 alert("closed");
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers