[Typo3] Date formats for task force extension

Robert Lemke robert at typo3.org
Tue Mar 29 19:49:23 CEST 2005


Hi Joey,

JoH wrote:

> remembered a thread about problems with the US date format a few days ago
> and so there is a very simple question, almost anybody of you could
> answer. To make the extension "international" I need to know:

... you need to know these PHP functions:

  - localeconv or nl_langinfo
  - strftime

You should rely on a proper configured locales configuration, then it's
quite easy to format a date fx. with strftime ('%c', $timestamp);

Conversion back is a bit tricky, but you can use the information from
nl_langinfo to do a proper parsing.

-- 
robert



More information about the TYPO3-english mailing list