L
L
lemonlimelike2018-01-27 02:14:55
PHP
lemonlimelike, 2018-01-27 02:14:55

What to use in this case?

Good evening everyone. How to do this: there is some object, there is a date field, the object has three types of state "future", "current" and "past". According to the standard, the item has the state type "future".
1.How to make the state type switch to "current" and, accordingly, to "past" at a certain moment.
2. What type of date field should it be? string? or date?
3. Is it possible to do this without krone? And How?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
@
@smple, 2018-01-27
@lemonlimelike

1. To get the state, you need to use a method that will determine it every time
2. any option is possible, I would store it in a date
3. I don’t see why crons are here, I think it’s quite possible to do without it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question