143 Posts
Stef
9 years ago
2
Topic

Hi,

I'm trying to format a date in a beforerender field to print it on my form.

That's the code i'm trying (in fact I tried others without result)...

$tdate = 'SELECT sc_date FROM #__cck_store_form_sc_spectacles WHERE id='.$id; 

$sdate = JCckDatabase::loadResult( $tdate ); 

$fields['sc_resa_date']->form .= '<h3>'.$sdate->format[l j F Y].'</h3>';

Any suggestion where 'im wrong ? I'm getting a blank page with this one...

Get a VIP membership

2 replies have been added to this thread, and the topic is marked as solved.
You should subscribe to a club in order to read all posts.