IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#57073 - 05/27/19 02:24 PM French date format
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 400
Loc: Home
Hi, I'm trying to convert English date to French, I downloaded the date function from OL website but the zip file contain a file called "Functions_Date.pptl" this is not .ptk format and cannot be imported in the Global functions library! I don't know what am I doing wrong or how to use this function. couldn't find and example online.

I need to change date from
01/10/2019 to 1 octobre 2019

I can use if statement to check each month and change it to alpha but I love to learn the use of this function which is very helpful!

THANKS
_________________________
Peace

Top
#57074 - 05/27/19 04:19 PM Re: French date format [Re: Sami786]
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 400
Loc: Home
This workaround works but if someone help me with the function that would be great.

define(&months,arraystring,['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'])
set(&FrenchMM,&months[&EfectiveMM-1])
_________________________
Peace

Top
#57078 - 05/28/19 02:05 PM Re: French date format [Re: Sami786]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
Your "workaround" is actually the proper way to do it.

As for the Global Function Library Manager, it does expect .pptl files. You need to add the target pptl file to a folder already monitored by the Manager or to add a new folder to the list that the manager is monitoring (File > Manage Folders).

The Manager will scan the folder for all pptl files and add them to the list on the left. Then, you can drag&drop the functions you want to add to the current document.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top