Mehram says:
var currentDate = currentTime.getDate() + " - " + currentTime.getMonth() + " - " + currentTime.getFullYear();
replace with below.
var currentDate = currentTime.getDate() + " - " + (currentTime.getMonth() + 1) + " - " + currentTime.getFullYear();