work with dates in the following format: "Tuesday, February 14, 2006 @ 10:39 am", how can we convert them to another format, that is easier to use? please give the example
problem in work with dates in the following format
2445
25-Nov-2010
Amit Singh
25-Nov-2010So let's say we have
$date = "Tuesday, February 14, 2006 @ 10:39 am";
In order to convert that to a timestamp, we need to get rid of the "@" sign, and we can use the remaining string as a parameter for the strtotime function.
for example
now $date is a timestamp
and we can say:
echo date("d M Y",$date);
hi, rajesh check this sample