473,395 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

enter the date in data base avec zend

132 100+
bonjour,
i found the field of the date in data base as 0000-00-00

Code :
Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3. $dateCreat = new Zend_Form_Element_Text('dateCreat');
  4.          $dateCreat->setLabel('Date de création (JJ/MM/AAAA)')
  5.                         ->addValidator('Date','DD/MM/YYYY')
  6.                          ->addFilters(array('StripTags', 'StringTrim'))
  7.                          ->setRequired(true)
  8.                          ->getDecorator('label')
  9.                          ->setOption('tag', 'span');
  10.  
  11.          $this->addElement($dateCreat);
  12.  
for the controller
Code:

Expand|Select|Wrap|Line Numbers
  1. $data['dateCreat']     =    $form->getValue('dateCreat');
thanks
Jun 10 '11 #1
0 1197

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Yong Wang | last post by:
> Hi: > We have a database system. In the database, we have an > attribute called date0, which contains date data (format: > i. e. 2004-08-12). I wrote a script to fetch the data > in a...
1
by: Dan | last post by:
Hello, I need a good way to have my users enter the date and time into a form. Could someone please give me some ideas here. What is the preferrable method for doing this in an asp form page? ...
2
by: Vicente Nicolau | last post by:
Hello I'm making a PDA project that uses a data base. That data base is saved in a xml file. When the application starts up, I load the xml file in memory. The application makes changes in the...
5
by: cameron | last post by:
I am working on an assignment where I have to allow end-users to enter in data and to have C++ make a calculation. From there I have to set up a loop to allow users to go back and enter new data or...
5
by: Will | last post by:
- I know enough ASP and Access to be dangerous :) - I need to put up a data base on our web server with 3 related tables. - They will be accessed by a limited number of people. - Each user will...
3
by: nandhanvijay | last post by:
hi every am trying to connect data base in vb.net but am unable to connect. As per the book am following that says to connect to data base go to tools menu connect to data base option. u will...
3
by: preeti13 | last post by:
i have a store procedure need to get the date from the data base help me please with this. i know something missing in the code right here: da.SelectCommand.Parameters.Add(new...
2
by: chuck gregory | last post by:
I am using a database from program A as the database for program B. When I enter data in either the form or subform in program B for families already in the database, there's no problem. When I...
1
by: rakeshnair | last post by:
i wrote a code in jsp to create dynamic table..the problem is i need data base connection when cursor moves from one cell to other... eg...when i enter product id in the first cell, the product name...
0
by: apwuhp | last post by:
We have used a data replication product that has replicated our production data base to another server, both servers are AIX 5.3 operating system and IBM DB2 data bases. The product replicates at the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.