please help me with this script

by 2 replies
3
Hello Warriors.
Need help with a simple matter i just cant figure out.

Got this script on line

<script type="text/javascript">
var mydate= new Date()
mydate.setDate(mydate.getDate()+1)
document.write("Tomorrow Date :" +mydate.getDate()+"/"+(mydate.getMonth()+1)+"/"+mydate.getFullYear());
</script>

it shows tomorrows date in month day year format.
i need it to display month day year. simple solution i am sure but its taking too much of my time.
help please
#programming #script
  • nobody?
    hello!
  • Your question wasn't very clear. Did you mean you want it to display today's date instead of tomorrow's? If so...

    Code:
    <script type="text/javascript">
    var mydate= new Date()
    mydate.setDate(mydate.getDate())
    document.write("Today :" +mydate.getDate()+"/"+(mydate.getMonth()+1)+"/"+mydate.getFullYear());
    </script>
  • [DELETED]

Next Topics on Trending Feed