Skip to content

cDate::FromSQL()

Rainer Stötter edited this page May 9, 2017 · 15 revisions

Method FromSQL( )

 public   mixed libdatephp\cDate::FromSQL($str)

FromSQL() sets the internal day according to a SQL date string

Example:

use libdatephp;

$dt = new cDate( 11, 23, 2016 );

$dt->FromSQL( '2017-12-22' );

Arguments

  • $str mixed - <p>string the SQL string</p>

See also

Clone this wiki locally