Results 1 to 2 of 2

Thread: :: Local Time script article adapting to ASP.NET

  1. #1
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default :: Local Time script article adapting to ASP.NET

    Script:Local Time
    http://www.dynamicdrive.com/dynamicindex6/localtime.htm
    Hello I read the Local Time script article and tried to use it unsuccessfully I think it's because the script supports ASP pages but not ASP.NET pages. How can I make it workable with ASP.NET? Thank you. Dov.
    Last edited by Dov; 02-01-2012 at 10:03 AM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post, in this case http://www.dynamicdrive.com/dynamicindex6/localtime.htm See this thread for the proper posting format when asking a question.

    I'm not familiar with ASP.net, but I'm sure it supports a way to get the server's time. Once you find out how, the line to edit inside the script to include that function call is the following:

    Code:
    var servertimestring=(servermode=="server-php")? '<? print date("F d, Y H:i:s", time())?>' : (servermode=="server-ssi")? '<!--#config timefmt="%B %d, %Y %H:%M:%S"--><!--#echo var="DATE_LOCAL" -->' : '<%= Now() %>'
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    Dov (02-01-2012)

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
  •