Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7536065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:28:24+00:00 2026-05-30T06:28:24+00:00

Here is my code, works except inserts . before and after date in input

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:28:26+00:00Added an answer on May 30, 2026 at 6:28 am

    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?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is a code excerpt from AspComet project that works with Autofac. public MessageBus(IClientRepository
I have some code here which works perfectly in firefox but not in chrome
I've got some code here that works great on IPv4 machines, but on our
I have my code here, it works fine from my home, where my user
Using the obsolete System.Web.Mail sending email works fine, here's the code snippet: Public Shared
I have a little bit of Javascript that almost works correctly. Here's the code:
What is the problem here? (Besides having redundant code). $.getJSON works as expected. However
Everything in the code below works except for the binding on the ContextMenu. This
This code works fine for absolutely every mail client except Mail for OSX, which
This code works perfectly except that it doesn't print the last 2 rows of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.