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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:54:53+00:00 2026-05-28T06:54:53+00:00

What should i do ? $edit_end_date = ‘2011-02-31’; $validator_date = new Zend_Validate_Date(array(‘format’ => ‘yyyy-mm-dd’));

  • 0

What should i do ?

$edit_end_date  = '2011-02-31';
$validator_date = new Zend_Validate_Date(array('format' => 'yyyy-mm-dd'));  
$isval          =   $validator_date->isValid($edit_end_date);  
if((!$isval) || empty($edit_end_date))
    {
    echo "Please Enter Valid End Date. !";
    }else{
echo "Entered Is Valid End Date. !";
}

how come it returns true date ?

  • 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-28T06:54:54+00:00Added an answer on May 28, 2026 at 6:54 am

    According to the Zend API Docs, it appears that Zend_Validate_Date will only validate whether the argument passed to it, is a valid date construct (also considers locale), it will not validate if the date actually exists.

    Zend_Validate_Date allows you to validate if a given value contains a date. This validator validates also localized input.

    — Edit —

    Looks like you can use PHP’s built in checkdate() function to determine if a date is valid or not.

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

Sidebar

Related Questions

So I have this array: $dates[0] = array('start'=>'2010-07-22', 'end'=>'2010-07-23'); $dates[1] = array('start'=>'2010-07-22', 'end'=>'0000-00-00'); $dates[2]
I have an array List<SomeObject> which contain ascending order of dates (and some more
I'm new to MySQL, and just learned about the importance of data normalization. My
In this blog it should be explained how to implement the jquery datepicker for
A table exists in Microsoft SQL Server with record ID, Start Date, End Date
I have the following piece of code within my stored procedure , I know
I'm currently trying to use this query SELECT a.id AS id, a.item AS item,
Using FullCalendar ( http://arshaw.com/fullcalendar/ ) to pull events from a MySQL database table via
I found the following in Stackoverflow and have been working with it to find
Please see attached image alt text http://img248.imageshack.us/img248/7743/datefrom.png I have a table which have FromDate

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.