- Posts: 22
- Thank you received: 4
Please Log in or Create an account to join the conversation.
Hi!jonmar wrote: 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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
JHtml::_date('j F Y G:i', $item->stardate, null);
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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); ?>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
<?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>
Please Log in or Create an account to join the conversation.