CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Validate a date

Print topic Send  topic

Author Message
smokingguns


Posts: 51
Posted: 10/15/2009, 7:01 AM

Hey all,
In PHP there is a function called checkdate which checks the validity of the date formed by the arguments.
Format:
bool checkdate ( int $month , int $day , int $year )
.
A CCS Date data type is an array.For example, if you fetch a control value that stores a date, do the following to validate:

  
$dateobj=$Record->ControlName->GetValue();  
$year=$dateobj[1];  
$month=$dateobj[2];  
$day=$dateobj[3];  
$isvalid=checkdate ($month , $day , $year);  
View profile  Send private message
datadoit
Posted: 10/15/2009, 1:43 PM

See also the CCFormatDate() and CCParseDate() functions.

http://docs.codecharge.com/studio40/html/Components/Fun...atDate.html?toc

http://docs.codecharge.com/studio40/html/Components/Fun...seDate.html?toc

Add new topic Subscribe to topic   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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