• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Getting calendar format to show as Jan 14,2014

Getting calendar format to show as Jan 14,2014 11 years 2 months ago #26747

  • rowby
  • rowby's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Hi

Using Joomla 3.1.5 adn RS FORM Pro1.4.0

I am trying to get the calendar field to result in this format

Jan 14 20124. It is my understanding to make it look like that I do the following in date attributes: M dd yyyy

But when I do that it still stays as 01 14 2014 on the front end.

Basically my client wants the month to show as JAN FEB etc instead of numbers 01 02 etc

Thanks for any clarification.
Rowby Goren
www.rowby.com
The administrator has disabled public write access.

Getting calendar format to show as Jan 14,2014 11 years 2 months ago #26762

  • josh.thomson
  • josh.thomson's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 2
uk1.php.net/manual/en/function.date.php

Yes 'M' is correct, However, I do not think that RSForms is designed to take all php date formats.

So to achieve this, I think you need to run something like this:
<?php
$date = new DateTime($_POST['form']['date']);
echo $date->format('M dd yy');
?>

check out: uk1.php.net/datetime.format


It's also my understanding that you need to put the tags //<code> & //</code> before and after code to allow for it to parse php within the config of a particular form component.


Good Luck!

Josh.
Last Edit: 11 years 2 months ago by josh.thomson.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!