Users local date/time

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

  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. Similar Questions and Discussions

    1. Time::Local V 1.10 and users thereof, eg Archive::Zip V 1.14
      Hi Folks This is a note about the behaviour of Time::Local (under Windows) andproblems with modules such as Archive::Zip, which use Time::Local. ...
    2. local date/time.
      Does any one know, having retrieved a utc date/time from a field, whether one may use ESQL (infx) functions to convert it to local time (that is...
    3. Access to UTC time with servers running in local time
      There is an undocumented way of getting the server's utc time in seconds just like the time() system call on the server would return it: select...
    4. Access to UTC time with severs running in local time
      I am running server under Linux. Can I get the UTC time in servers with SQL sentences ? The 'current' and 'today' options always return local...
    5. domain users/local users
      I have joined an XP machine to a 2000 domain. I want to share the printer to one of the domain users. When I go to share it, I only get the users...
  3. #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

  4. #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

  5. #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

  6. #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

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