how can convert 20200605 to 2020_06_05 etc... ?
Posted: 09 Nov 2020 07:39
hi dear coders
how can convert 20200605 to 2020_06_05 etc... ?
Sincerely
how can convert 20200605 to 2020_06_05 etc... ?
Sincerely
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
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);