• 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: Translate autopolulated date field

Translate autopolulated date field 7 years 2 months ago #37880

  • jan007
  • jan007's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
I use this code to autopopulate a date field:

//<code>
$today = date("j F Y");
return $today;
//</code>

Suddenly the date output is in English but i like the date in dutch.

So not "5 February 2018" but "5 Februari 2018".

How can I translate? The date output used to be in dutch.
The administrator has disabled public write access.

Translate autopolulated date field 7 years 1 month ago #38045

  • jan007
  • jan007's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
I've got the same problem...

I tried the solution below. Now the date is in dutch, but not inside the field anymore. It is shown on top of the form..

//<code>
$today = getdate();

// print_r ($today);
// deze array bevat alle informatie die je nodig hebt

$dagen=array();
$dagen[]="Zondag";
$dagen[]="Maandag";
$dagen[]="Dinsdag";
$dagen[]="Woensdag";
$dagen[]="Donderdag";
$dagen[]="Vrijdag";
$dagen[]="Zaterdag";

$maanden=array();
$maanden[]="jan";
$maanden[]="feb";
$maanden[]="maart";
$maanden[]="april";
$maanden[]="mei";
$maanden[]="juni";
$maanden[]="juli";
$maanden[]="aug";
$maanden[]="sept";
$maanden[]="okt";
$maanden[]="nov";
$maanden[]="dec";

echo $dagen[$today[wday]]." ".date('d')." ";
echo $maanden[$today[mon]-1].", ".date('Y');
//</code>
The administrator has disabled public write access.

Translate autopolulated date field 7 years 1 month ago #38046

  • jan007
  • jan007's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
Nu even dit gebruikt als tussenoplossing:

//<code>
$today = date("j-m-Y");
return $today;
//</code>
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!