www.webdeveloper.com
Results 1 to 3 of 3

Thread: How To Format Javascript Date

Threaded View

  1. #1
    Join Date
    Jun 2006
    Posts
    112

    How To Format Javascript Date

    Newbie - Attempting to format date and having no success. Any help is appreciated. Here is what I have done so far.
    <Script>
    function chgit() {
    var d = new Date();
    var mm = d.getMonth();
    var dd = d.getDay();
    var yy = d.getFullYear();
    var thedate = (mm dd yy) ;
    document.getElementById("Date_Resolved").value = thedate;
    }
    </Script>
    Last edited by Chamark; 07-18-2013 at 09:17 AM. Reason: [RESOLVED]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles