Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default actual date on paeg

    Hello,

    How a get an actual date on my page? I cannot find it!

    thanks

    Jan
    snuif12 Guest

  2. Similar Questions and Discussions

    1. Check the actual FPS and use it as a variable
      Hello, Just saw your post about getting the actual FPS in a variable, was wondering if you got the solution. Thanks a lot.
    2. checking actual framerate
      Hi, I made a site which uses horizontal scrolling navigation (check: http://www.esthervenrooy.com) Not surprisingly, the scrolling is far from...
    3. Parsing the client URL rather than the actual URL
      Greetings, I've been reading up on Search Engine optimisation, and I've come across a little gem which makes me realise my pages are probably all...
    4. Actual Tempo Problems
      Hi all, Hoping someone can help me. In one section of my movie the actual tempo switches to 6 fps (can see this in the control panel) even though...
    5. actual publishing
      I have Publisher 2000. I used the tutorials, which were very helpful. I even did the Nav Bar Wizard. I guess I don't understand how this is...
  3. #2

    Default actual date on paeg

    Hello,

    How a get an actual date on my page? I cannot find it!

    thanks

    Jan
    snuif12 Guest

  4. #3

    Default Re: actual date on paeg

    Dreamweaver can insert the date of the last update, but not the current date,
    you need either a client or server side script for that.

    If you are using ASP/VB you can use
    <% =day(now) %>/<% =month(now) %>/<% =year(now) %>

    If you are using statis HTML you can use something like

    <!--start of script that displays date -->

    <script language="JavaScript">
    <!-- hide from old browsers
    function GetDay(intDay){
    var DayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday",
    "Thursday", "Friday", "Saturday")
    return DayArray[intDay]
    }

    function GetMonth(intMonth){
    var MonthArray = new Array("January", "February", "March",
    "April", "May", "June",
    "July", "August", "September",
    "October", "November", "December")
    return MonthArray[intMonth]
    }
    function getDateStrWithDOW(){
    var today = new Date()
    var year = today.getYear()
    if(year<1000) year+=1900
    var todayStr = GetDay(today.getDay()) + ", "
    todayStr += GetMonth(today.getMonth()) + " " + today.getDate()
    todayStr += ", " + year
    return todayStr
    }
    //-->
    </script>
    <!--end of script that gathers date -->
    <!--start of script that displays date -->
    <script language="JavaScript">
    <!-- hide from old browsers
    document.write(getDateStrWithDOW())
    //-->
    </script>

    <!--end of script that displays date -->


    Originally posted by: snuif12
    Hello,

    How a get an actual date on my page? I cannot find it!

    thanks

    Jan



    CarlGrint Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139