K
K
Khaybulla Musaev2016-08-25 00:34:48
PHP
Khaybulla Musaev, 2016-08-25 00:34:48

Converting a string to a date, is there a ready-made "tasty" library?

The task is to catch something like the following at the input (in Russian):
"Tomorrow at 13:30", "Next Tuesday at 4 pm", "September 22 at 11:00"
and the output date is ready.
I'm looking for a ready-made solution, preferably in php.
It can be simpler in terms of functionality (today, tomorrow and dates), as long as it converts correctly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stac, 2016-09-01
@musaev_haybulla

Translate the input string to English and use:
str_replace
strtotime
Date and time formats

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question