-
Notifications
You must be signed in to change notification settings - Fork 0
cDateISO::AsSQL()
Rainer Stötter edited this page May 9, 2017
·
1 revision
public string libdatephp\cDate::AsSQL()
- Namespace : libdatephp
- Class name: cDateISO
- This method is defined by libdatephp\cDate
AsSQL() returns the SQL representation of the date
Example:
$dt = new \libdatephp\cDate( 1, 1, 2017 );
for ( $i = 0; $i < 12; $i++ ) {
$dt->GoFirstWeekOfMonthISO( );
echo "\n The first week of the month " . $dt->Month( ) . ' in ' . $dt->Year( ) . ' starts on the ' . $dt->AsSQL( );
echo '. The month has ' . $dt->WeeksOfMonth( ) . ' calendar weeks ';
$dt->AddMonths( );
}
string the SQL string
This wiki page is part of the documentation of the PHP class library libdatephp