Create a gist now

Instantly share code, notes, and snippets.

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