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 8184709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:35:51+00:00 2026-06-07T01:35:51+00:00

<link rel=stylesheet type=text/css media=all href=jsDatePick_ltr.min.css /> <script type=text/javascript src=jsDatePick.min.1.3.js> </script> <script type=text/javascript> window.onload =

  • 0
<link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />
<script type="text/javascript" src="jsDatePick.min.1.3.js"> </script>
<script type="text/javascript">
    window.onload = function(){
        var fromObj,toObj;
        fromObj=new JsDatePick({
            useMode:2,  target:"inputField1",dateFormat:"%d-%M-%Y"

        });     
        toObj=new JsDatePick({
            useMode:2,
            target:"inputField2",
            dateFormat:"%d-%M-%Y"

        });             

function viewAlert(){
    //what i need to put it here?   

}

    };
</script>
</head>
<body>
<form name="form1">

<table align="center">
    <tr><td>from:</td><td><input type="text" size="12" id="inputField1" name="from" /></td></tr>
    <tr><td>to:</td><td><input type="text" size="12" id="inputField2" name="to" onblur="viewAlert()" /></td></tr>
    </table>

    </form>

I created two input fields which takes date from jsDatePicker.After entering those dates, i need to display the number of days b/w that selected dates in the alert box. For that what i need to do?

Thanks in advance

  • 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-07T01:35:52+00:00Added an answer on June 7, 2026 at 1:35 am
    var msDay = 24*60*60*1000; 
    var days = Math.round(Math.abs((fromObj.getTime() - toObj.getTime())/(msDay )));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<link rel=stylesheet type=text/css href=css/status.css /> <script type=text/javascript src=js/jquery-1.7.1.min.js></script> <script type=text/javascript src=js/jquery-ui-1.8.18.custom.min.js></script> <meta charset=utf-8> <style>
<link rel=stylesheet href=/js/jquery.qtip.css type=text/css /> <script type=text/javascript src=/js/jquery.qtip.js></script> <script type=text/javascript language=javascript> $(document).ready(function () {
with autocomplete javascript: <link rel=stylesheet type=text/css href=j query/js/jquery.autocomplete.css /> <script type=text/javascript src=j query/js/jquery.autocomplete.js></script>{/literal} <script
<link type=text/css media=all rel=stylesheet href=./foo.css.txt /> Firbug Error The stylesheet foo.css.txt was not loaded
I have this script $('head').append('<link rel=stylesheet href=css/file1.css type=text/css />'); $('head').append('<link rel=stylesheet href=css/jquery.jscrollpane.css type=text/css />');
<?php include('db_connect.php'); ?><head> <link rel=stylesheet type=text/css href=comment-style.css media=screen /> <script type=text/javascript src=../jquery.tablesorter/jquery-latest.js></script> <script type=text/javascript
<html> <link rel=stylesheet type=text/css media=screen href=blogstyle.css> <title>Welcome to my blog</title> <body> <frameset cols=10%,60%,30% border=0
Here is what I have already: <html> <head> <link rel=stylesheet type=text/css href=reset.css /> <script
I want to add this code: <link rel=stylesheet type=text/css href=css/global.css /> <!--[if lt IE
I have a horizontal menu on a page like this <link rel=stylesheet type=text/css href=/classified/siteassets/css/mymenu.css

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.