Answer the question
In order to leave comments, you need to log in
How to convert text using php regular expressions?
How to get 02/05/2020 from the given text 2020-05-02T00:29:15.0+07:00 ?
Answer the question
In order to leave comments, you need to log in
Why do you need regular expressions here? This is the standard date format and there are built-in functions.
$date = new DateTime('2020-05-02T00:29:15.0+07:00');
echo $date->format('d/m/Y');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question