- Messaggi: 22
- Ringraziamenti ricevuti 4
Si prega Accedi o Crea un account a partecipare alla conversazione.
Hi!jonmar ha scritto: Sorry, I had forgotten about your question.
We use 3 languages for the front end, Norwegian (default), Finnish and English. For all languages, we need the date to appear as D.M.-D.M. So, without leading zeros for day or month, and without spaces before and after the date separator, and a period after the month. I looked in the options for the date formatting but an option without leading zeros doesn't exist. It mentions a "customisable international date format" but I didn't see any way to customise it.
Si prega Accedi o Crea un account a partecipare alla conversazione.
Si prega Accedi o Crea un account a partecipare alla conversazione.
JHtml::_date('j F Y G:i', $item->stardate, null);
Si prega Accedi o Crea un account a partecipare alla conversazione.
Si prega Accedi o Crea un account a partecipare alla conversazione.
I thought you had a minimum knowledge as you have created your own theme pack (using php/html structure... )So where do I put the example code you gave? Sorry if it's a dumb question, but like I said I don't know anything about PHP.
<?php echo JHtml::date($evt, 'j.n', null); ?>
<?php echo JHtml::date($item->stardate, 'j.n', null); ?> - <?php echo JHtml::date($item->enddate, 'j.n', null); ?>
Si prega Accedi o Crea un account a partecipare alla conversazione.
Si prega Accedi o Crea un account a partecipare alla conversazione.
Well, it was about your usage (only single dates ? only period ? or mix of two) but don't worry now, it was to give you a quick answer, but in the case i stated you had enough php knowledge, which is not the case, so i will see your custom code, it would be faster )I thought I had answered all of your questions so far. Can you tell me which ones I haven't answered yet, and I will do so ASAP.
Si prega Accedi o Crea un account a partecipare alla conversazione.
Si prega Accedi o Crea un account a partecipare alla conversazione.
<?php // Day ?>
<div class="ic-day">
<?php if (iCDate::isDate($item->startdate) && ! $item->weekdays) : ?>
<?php echo JHtml::date($item->startdate, 'j.n', null); ?> - <?php echo JHtml::date($item->enddate, 'j.n', null); ?>
<?php else : ?>
<?php echo JHtml::date($evt, 'j.n', null); ?>
<?php endif; ?>
</div>
Si prega Accedi o Crea un account a partecipare alla conversazione.