Here is my code, works except inserts . before and after date in input box. Tried removing periods, still lists . before and after date.
<?php echo JHTML::_( 'calendar',".$this->start.",'start','start','%m-%d-%Y'); ?>
Something must be wrong with the syntax but i cannont figure it out
Joomla 1.6 JHTML
When ” and . are removed I get this:
[23-Feb-2012 22:00:11] PHP Fatal error: Uncaught exception ‘Exception’ with message ‘DateTime::_construct() [datetime.–construct]: Failed to parse time string (02-24-2012) at position 0 (0): Unexpected character’ in /mnt/stor9-wc1-dfw1/653320/www.alumnifootballusa.com/web/content/libraries/joomla/utilities/date.php:149
Stack trace:#0 /mnt/stor9-wc1-dfw1/653320/www.alumnifootballusa.com/web/content/libraries/joomla/utilities/date.php(149): DateTime->_construct(’02-24-2012′, Object(DateTimeZone))#1/mnt/stor9-wc1-dfw1/653320/www.alumnifootballusa.com/web/content/libraries/joomla/factory.php(452): JDate->__construct(’02-24-2012′, ‘UTC’)#2 /mnt/stor9-wc1-dfw1/653320/www.alumnifootballusa.com/web/content/libraries/joomla/html/html.php(573): JFactory::getDate(’02-24-2012′, ‘UTC’)#3 [internal function]: JHtml::date(’02-24-2012′)#4 /mnt/stor9-wc1-dfw1/653320/www.alumnifootballusa.com/web/content/libraries/joomla/html/html.php(187): call_user_func_array(Array, Array)#5 /mnt/stor9-wc1-dfw1/653320/www.alumnifootball in /mnt/stor9-wc1-dfw1/653320/www.alumnifootballusa.com/web/content/libraries/joomla/utilities/date.php on line 149
This is Joomla code?
Try using braces around the PHP entry.
I don’t see why the double quotes are there at all, though.
EDIT
Can you show us what your various options have echoed to the page?