please help me with this script

2 replies
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
#script
  • Profile picture of the author seminyha
    nobody?
    hello!
    {{ DiscussionBoard.errors[7576165].message }}
    • Profile picture of the author FirstSocialApps
      [DELETED]
      {{ DiscussionBoard.errors[7576861].message }}
  • Profile picture of the author Brandon Tanner
    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>
    Signature

    {{ DiscussionBoard.errors[7576243].message }}

Trending Topics