hi dear coders
how can convert 20200605 to 2020_06_05 etc... ?
Sincerely
how can convert 20200605 to 2020_06_05 etc... ?
how can convert 20200605 to 2020_06_05 etc... ?
newbie or not...........
Re: how can convert 20200605 to 2020_06_05 etc... ?
Code: Select all
$string = "20200605";
text regexreplace($string, "^(\d{4})(\d{2})(\d{2})$", "$1_$2_$3");
text substr($string, 0, 4) . "_" . substr($string, 4, 2) . "_" . substr($string, 6, 2);
One of my scripts helped you out? Please donate via Paypal
Re: how can convert 20200605 to 2020_06_05 etc... ?
thank you very much dear coder.
newbie or not...........