Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » GetExternalDate
GetExternalDate [message #2492] Sun, 11 April 2010 16:47 Go to next message
gpatti is currently offline  gpatti
Messages: 283
Registered: August 2008
Senior Member
I am trying to call GetExternalDate but this generates the following error:
[code]Fatal error: Call to undefined function getExternalDate() in C:\xampp\....\letter.class.inc on line 315[code]
My code was:
$rows[1]['column4'] = 'Exam Date: ' . getExternalDate ($curr_row['session_date']);

Have I performed the call incorrectly?
Re: GetExternalDate [message #2493 is a reply to message #2492] Sun, 11 April 2010 17:19 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2367
Registered: April 2006
Location: Surrey, UK
Senior Member
I'm afraid my documentation failed to point out that this is not a stand-alone function but a method within 'date_class' (which is in file std.datevalidation.class.inc). You can access it as follows:

$dateobj =& RDCsingleton::getInstance('date_class');
$output = $dateobj->getExternalDate($input).


Re: GetExternalDate [message #2494 is a reply to message #2492] Sun, 11 April 2010 17:25 Go to previous message
gpatti is currently offline  gpatti
Messages: 283
Registered: August 2008
Senior Member
Thanks - that was easy!
Previous Topic: dropdown
Next Topic: Spanning columns in PDF list view
Goto Forum:
  


Current Time: Sat Nov 23 02:27:00 EST 2024

Total time taken to generate the page: 0.00945 seconds