I
I
issssrt2014-05-05 00:46:18
MODX
issssrt, 2014-05-05 00:46:18

modx revo: convert date to timestamp

Tell me at the snippet level how to convert a TV Date type date to a timestamp?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alvisX, 2014-05-05
@alvisX

<?php
$date = new DateTime("05.06.2014");
echo $date->getTimestamp();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question