Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8153123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:54:53+00:00 2026-06-06T15:54:53+00:00

I need to get the date from the server in mm/dd/yyyy without any javascript

  • 0

I need to get the date from the server in mm/dd/yyyy without any javascript or asp code. I would prefer to do this as either a link that flows in the current document frame and that also injects the mm/dd/yyyy into the current html web page as css or other non code based solution. I don’t want to use any extraneous querying languages like xslt, xquery, or plinq either.

example:

<h3>Date:<date format="mm/dd/yyyy" src="currentdate.asp" /></h3>

output:

Date:06/26/2012

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:54:54+00:00Added an answer on June 6, 2026 at 3:54 pm

    as he others say you cannot achieve this without at least a bit of javascript. what you could do is use jquery to select all your date tags and then post an ajax to get the current date in your preferred format.

    like so:

        <script type="text/javascript">
            $(document).ready(function(){
                $("date").each(function(index, element) {
                    var d = $(this);
                    $.post("ullu.asp", {
                        ajax: true,
                        act: "currentdate",
                        format: d.attr("format")
                    }, function(data) {
                        d.after("<span>" + data + "</span>");
                    });
                });
            });
        </script>
    
    <h3>Date:<date format="%m/%d/%Y" /></h3>
    

    then on ullu.asp:

    <%
    if request("ajax") = "true" then
        dim d : d = DateTime.FormatDate(request("format"), now)
    
        response.write d
    end if
    %>
    

    DateTime is here a class of mine for formatting dates you could use your own implementation… Furthermore you could add another attribute to your tag like “src” to send your ajax there.

    i know you wanted to do this without “using code” but that is not possible. with this solution you only have to add a bit of javascript which handles all your tags…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to get a Date from an SQL Server Database (SQL Server 2000),
Possible Duplicate: Get all files from VSS for a given date? I need to
Question: I need to get the DATE ONLY (= date WITHOUT time) with an
I'm developing an application and I need to get the current date from a
I need to get the day, month, year details from a Date value but
I'm getting from the server a Json object with this format Date: /Date(1337032800000+0000)/ and
I get the lastupdated date from SQL Server 2008 which has the follow value
I am doing a ajax post and getting this date back from the server
I get a bunch of dates from a server in YYYY-MM-DD NSString format which
I need to get the last day of the month given as a date

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.