CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 DateTime Problem

Print topic Send  topic

Author Message
Stefan
Posted: 05/13/2003, 7:12 AM

Hi,

i have a form with two input fields Start and End, both DateTime, Format: dd.mm.yyyy H:nn (European)

If the user selects via Datepicker a date and submits the form no error ocours. How can i validate that Date and Time ist correct?

Next Question: How can i validate that End is greater than Start

I hope anyone can help me

Lang: PHP, DB: MySQL

Regards

Stefan
Headhunter
Posted: 05/13/2003, 8:19 AM

As far as I know you cannot use the datepicker for DateTime fields, only for Date fields. I could be wrong
TimY
Posted: 05/13/2003, 12:07 PM

http://www.gotocode.com/disc_viewt.asp?mid=20331&
Stefan
Posted: 05/13/2003, 11:56 PM

Thanks for theses Hints, start greater than end works

but has anyone a hint for validating the Date and Time Mask, i tried it with this, European Format the Input has to look like this: dd.mm.yyyy HH:nn

$start_test = $time_test->start->GetValue();
if (!CCValidateDateMask($start_test, array("dd",".","mm",".","yyyy"," ","HH",":","nn")))
{
$time_test->Errors->addError("The Date/Time has not the right Mask!");
}

But this doesnt work.

Regards

Stefan

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.