-
Notifications
You must be signed in to change notification settings - Fork 0
cDateISO::FromAnyString()
Rainer Stötter edited this page May 9, 2017
·
1 revision
public mixed libdatephp\cDate::FromAnyString(string $str)
- Namespace : libdatephp
- Class name: cDateISO
- This method is defined by libdatephp\cDate
The method FromAnyString( ) sets the internal date according to the string $str. It recognizes the input format ( MDY, SQL, DMY ) automatically.
Example:
$dt = new \libdatephp\cDate( 1, 1, 2017 );
for ( $i = 0; $i < 12; $i++ ) {
echo "\n the month " . $dt->C_Month_Long_EN( ) . ' of the year ' . $dt->Year( ) . ' has ' . $dt->WeeksOfMonth( ) . ' weeks';
$dt->AddMonths( );
}
- $str string - <p>the string with the date</p>
This wiki page is part of the documentation of the PHP class library libdatephp