Formatting a date in PHP returned from SQL 2008 datetime field

cioserpoun

New Member
I'm having issues trying to parse a datetime field that I am returning in an SQL query. I was initially getting errors about it not being able to display it as a string but added the format part below and it at least displayed.\[code\]<td>".$frontpageresultarray['SubmitDate']->format(DATE_RSS)."</td>\[/code\]If I do that, it works but I don't get the format I want. I need really DD MM YY HH,MM and I have now idea how to go about it. I need to be able to do calculations on the date later in the script so I can't really just make it a string. Any help would be appreciated.
 
Back
Top