Forum Moderators: open
how would rewrite this vb code in js?
filMonth=Month(now)
filYear=Year(date)
<script type="text/javascript">
var today = new Date();
var filMonth = today.getMonth() + 1;
var filYear = today.getYear();var filDay = today.getDate();
var msgToday = "Today is: " + filMonth + "/" + filDay + "/" + filYear + " in the U.S.\n"
msgToday += "and " + filDay + "/" + filMonth + "/" + filYear + " elsewhere."
alert(msgToday);
</script>