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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:08:41+00:00 2026-05-14T15:08:41+00:00

I need a way to turn my 2 character string dates (i.e. ’04/10/2010′ &

  • 0

I need a way to turn my 2 character string dates (i.e. ’04/10/2010′ & ’05/24/2010′) into an integers to see if one is greater than the other. If the user enters an end date that is less than the begin date I need to popup an “invalid date range” error.

  • 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-05-14T15:08:42+00:00Added an answer on May 14, 2026 at 3:08 pm

    From what you posted your real problem is:

    I need to see if one date is greater than another in javascript/jquery.

    If so all you need to use is the Javascript Date object (how to page here).

    You can use it as follows:

    var dateTextA = '04/10/2010';
    var dateTextB = '05/24/2010';
    var dateA = new Date(dateTextA);
    var dateB = new Date(dateTextB);
    if (dateA < dateB){
        alert("Your date is out of range!");
    }
    

    Note: Above code has been tested and works in IE7.

    If you really feel you need an integer value, you can use the UTC function to get that.

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

Sidebar

Related Questions

I have a user supplied string, that I then need to turn into a
I need a way to turn code stored in a variable into real code.
In php is there a way to turn two integers (09 and 30) into
it need a way to call function whose name is stored in a string
I need a way of sorting a string I have in PHP, the string
I have a Postgres dump file and I need to turn it into a
What is the best way to turn an average desktop PC into server for
Is there way to take a NSString and turn it into a safe version
I'm making a quoting system and I need a way to turn 1 days,
I need a way to change the specific value of a column of a

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.