Skip to content

cDateTime::FromDMY()

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

Method FromDMY( )

 public   mixed libdatephp\cDateTime::FromDMY(string $str)

FromDMY( ) sets the timestamp to the value represented by a string in Day/Month/Year notation.

Example:

use libdatephp;

$dtm1 = new cDateTime( '22.12.2016 05:00:00' );

Arguments

  • $str string - <p>as a string representation of a timestamp</p>

Clone this wiki locally