Answer the question
In order to leave comments, you need to log in
Sample timestamp on propel?
Good evening, the task is to implement a selection filter from the database.
There are:
1. input (date)/(datetime)
2. Cell in the database ('Mydate' int) containing unix timestamp, approx( 1460407052 ).
Propel is used to work with the database
An example of my use
$date = strtotime($filter['date']);
$query->filterByMydate('%' . $date . '%', \Propel\Runtime\ActiveQuery\Criteria::LIKE);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question