Skip to content

Instantly share code, notes, and snippets.

@juarezpaf
Created December 19, 2009 14:34
Show Gist options
  • Select an option

  • Save juarezpaf/260097 to your computer and use it in GitHub Desktop.

Select an option

Save juarezpaf/260097 to your computer and use it in GitHub Desktop.
var difference = (new Date("dd/mm/yyyy") - new Date()) / 1000;
$("#countdown").html(Math.floor(( difference < 0 ? 0 : difference ) / (60 * 60 * 24)) + ' Dias');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment