J
J
Jedi2018-10-06 12:26:53
MySQL
Jedi, 2018-10-06 12:26:53

How to sum a date?

Good afternoon.
How to summarize the date correctly?
Tariffs table:
Id, name, price, period Payments
table:
id, user_id, tariff_id, expiration_at, created_at
There are tariffs for a week, a month, half a year...
When a user purchases one of the tariffs, you need to write the expiration_at in expiration_at .
Please write how to implement it correctly. I will be very grateful.
Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nakree, 2018-10-06
@PHPjedi

https://momentjs.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question