Re: localize string (date)

From: Date: Fri, 21 May 2010 19:12:06 +0000
Subject: Re: localize string (date)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-305405@lists.php.net to get a copy of this message
Le 21/05/10 21:00, Ashley Sheridan a écrit :
On Fri, 2010-05-21 at 20:51 +0200, Mickael MONSIEUR wrote:
hello I want to find a date in a text how to? format: XX-XX-XXXX Example: Ideo urbs Venerabile superb post 12-02-2010 efferatarum latasque leges gentium cervicis oppressed and fundamenta libertatis retinacula sempiterne Frugi velut parens and prudent and dives Caesaribus tamquam 25-04-2010 liberis am regendi patrimonii swore permitted. Return: 12-12-2010 25-04-2010 Thank you for your help. Mickael.
     
What sort of format is that date, English or American? For example: dd-mm-yyyy or mm-dd-yyyy? Thanks, Ash http://www.ashleysheridan.co.uk Hi,
The principle is to detect the possible dates in French texts. The formats can be varied ... examples 02.12.1991, 02/12/1991, 12-02-1991, ... or 2 digit (max 1 char ./-) 2 digit (max 1 char ./- ) 4 OR 2 digit (1991 Or 91) :-) Br,

« previous php.general (#305405) next »