I want to know how i can show or get only two numbers Date of current day date in Javascript,
So i can make same if else statements in javascript, for example like this in php
$dt = date("d");
if ( $dt < 10) {then do this} or if ( $dt > 20) {then do this.}
in php i get this 2 numbers current date with this simple command
echo date("d");
Anyone help me out how i can get this in javascript.