Skip to content

cDateTime::AsSQL()

Rainer Stötter edited this page Apr 28, 2017 · 9 revisions

Method AsSQL( )

 public   string libdatephp\cDateTime::AsSQL()

AsSQL( ) returns the timestamp as a string in year-month-day notation

Example:

use libdatephp;

$dtm = new cDateTime( '2016-12-22 05:00:00' );

echo $dtm->AsSQL( );

Returns

string the string representation of the timestamp

Clone this wiki locally