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

  • Home
  • SEARCH
  • 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 9009947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:19:53+00:00 2026-06-16T02:19:53+00:00

i need a javascript method to validate a date pattern looks like this Jan

  • 0

i need a javascript method to validate a date pattern looks like this Jan 14, 2012

so far i am not sure which regex to use for this pattern as it is not standard date such as 14/01/2012 or 01/14/2012 or 01-04-2012..i tried to do something like this for early startes to split them up but ending i received a total split.

here is my split code

 function validateDate(date){
   var test = date.replace(",","");
   alert(test);
  var split = test.split("");
  for(i=0;i<split.length;i++){
      alert(split[i]);
   }
  alert("total length "+split.length);
}
  • 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-16T02:19:55+00:00Added an answer on June 16, 2026 at 2:19 am

    You can use momentjs and particullary its parsing functionnality. Something like :

    moment("Jan 14, 2012", "MMM DD YYYY").isValid();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a method in JavaScript to escape all characters which are not (
I need to validate the date format in textbox inside popup using JavaScript. Instead
Possible Duplicate: In need of JavaScript Solution for Exporting table to Excel which works
I need to validate an empty field with php and javascript, but both of
I have an LinkButton control which I need to add a c# method to.
I need to validate input using JavaScript and jQuery when someone submit my newsletter
I have a <input type=text value=A new value> I need a javascript method to
I need a JavaScript method to detect when the mouse leaves an element with
This is my code: <script type=text/javascript src=js/jquery-1.5.1.min.js></script> <script type=text/javascript src=js/jquery.validate.js></script> <script type=text/javascript> $(document).ready(function() {
I have a JavaScript method that I need to run on one of my

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.