Hi all:
I have an array of dates being posted to a page as Y-m-d. I am adding a space after each comma in the array. The code to display this is simply as follows:
str_replace(",",", ",$pShowDateArray_str)
The problem is I want them displayed in n/j/Y format. I have tried the following and all are causing the dates not to appear:
1. str_replace(",",", ",date_format(date_create($pShowDateArray_str), "n/j/Y")
2. $vShowDateArrayNJY = date_format(date_create($pShowDateArray_str,"n/j/Y");
str_replace(",",", ",$vShowDateArrayNJY)
I have tried a few other ways too but after about 2 hours on this I can't remember
Any help appreciated