val() public méthode

Return, or update, current standard objects value.
public val ( null $value = null ) : mixed
$value null If $value is set, value is updated and DateTimeObject is returned.
Résultat mixed
 public function testConstructor2()
 {
     $dt = new DateTimeObject('14.02.2013');
     $dt->setFormat('d.m.Y');
     $this->assertSame('14.02.2013', $dt->val());
 }