Professional Web Applications Themes

Users local date/time - Dreamweaver AppDev

How do I grab the users local date and time for later manipulation in my application? Brains fuzzy and I can't seem to find anything after a quick search online. Cheers, Rob [url]http://robgt.com/[/url]...

  1. #1

    Default Users local date/time

    How do I grab the users local date and time for later manipulation in my
    application?
    Brains fuzzy and I can't seem to find anything after a quick search online.
    Cheers,
    Rob
    [url]http://robgt.com/[/url]


    RobGT Guest

  2. #2

    Default Re: Users local date/time

    OK,
    I can do it client side in javascript - is this the only method available to
    me (guess so, but you never know :)

    Cheers,
    Rob
    [url]http://robgt.com/[/url]
    Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    Extensions: [url]http://robgt.com/products/index.asp[/url]


    RobGT Guest

  3. #3

    Default Re: Users local date/time

    On 26 Apr 2005 in macromedia.dreamweaver.appdev, RobGT wrote:
    > I can do it client side in javascript - is this the only method
    > available to me (guess so, but you never know :)
    I just had a trawl through php.net and didn't see anything. You may be
    able to do something with Java?

    --
    Joe Makowiec
    [url]http://makowiec.net/[/url]
    Email: [url]http://makowiec.net/email.php[/url]
    Joe Makowiec Guest

  4. #4

    Default Re: Users local date/time

    I saw this in another answer,,, try this


    Month(Date) returns the Month
    Day(Date) returns the Day
    Year(Date) returns the Year

    Copy the code below into a new ASP page,

    <%
    Response.Write("Hello, today's date is, " & Date & "<br><br>")
    Response.Write("The Month is " & Month(Date) & "<br>")
    Response.Write("The Day is " & Day(Date) & "<br>")
    Response.Write("The Year is " & Year(Date) & "<br>")
    %>


    Lars67 Guest

  5. #5

    Default Re: Users local date/time

    Thanks Lars, but I need to grab the _users_ date and time, not my server
    date and time, which is what that code does (I'm familiar with this already
    :).

    I appreciate the help though.
    It looks like I must go the client side javascript route to resolve this.
    Cheers,
    Rob
    [url]http://robgt.com/[/url]
    Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    Extensions: [url]http://robgt.com/products/index.asp[/url]


    RobGT Guest

Similar Threads

  1. Replies: 0
    Last Post: November 4th, 10:09 PM
  2. local date/time.
    By Andrew Hardy in forum Informix
    Replies: 1
    Last Post: November 7th, 05:07 PM
  3. Access to UTC time with servers running in local time
    By Michael Mueller in forum Informix
    Replies: 2
    Last Post: August 27th, 05:34 AM
  4. Replies: 2
    Last Post: August 26th, 01:57 AM
  5. domain users/local users
    By Rob in forum Windows Setup, Administration & Security
    Replies: 0
    Last Post: July 21st, 02:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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