Forum : Doubt
Brief description  about Online courses   join in Online courses
View devarati  gupta 's Profile

Doubt

Sir,
I could not figure out how an date format(yyyy-mm-dd) could be converted into "mm/dd/yyyy" format using REGULAR EXPRESSIONS.
This question is in PHP's 3rd assignment(regular expressions:-4) Change the date format from "yyyy-mm-dd" to "mm/dd/yyyy" using regular expressions.)
Still i have submitted the assignment by using the "date" function.usually regular expressions are used for matching and replacing...Please explain how to change the date format using regular expressions?
Asked by devarati gupta | Nov 5, 2009 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi devararti,
I have sent u a message as to how to do it. I will not be replying here since I want other students who are taking the course to try it :) .
I will give a hint to others if they want, you can use preg_replace function.

Regards,
Sumanth
Nov 10, 2009