php clone datetime code example Example: php clone datetime $date = new DateTime(); //Clone the first date $dateClone = clone $date;