Sorry for a double post, I forgot to add something (again)

 

I know about the LocalizedToNormalized filter and it works awesome for
floats (the cs_CZ format of 5,555 is converted silenky to 5.555) . but for
the date it returns an array, which requires some attention and I'd like to
skip that "attention step" .

 

array(7) {

  ["text"] => string(6) "wefwef"

  ["integer"] => string(1) "5"

  ["float"] => string(3) "4.5"

  ["date"] => array(5) {

    ["date_format"] => string(8) "d.M.yyyy"

    ["locale"] => string(5) "cs_CZ"

    ["day"] => string(2) "12"

    ["month"] => string(1) "2"

    ["year"] => string(4) "2009"

  }

  ["email"] => string(13) "[email protected]"

  ["url"] => string(6) "wef.cz"

  ["password"] => string(3) "aaa"

}

 

S pozdravem 

Jan Juříček
WebCorp s.r.o. 

Kancelář: Wichterlova 2372/10, 182 00 Praha
E-mail: [email protected] <mailto:[email protected]>  Web:
www.webcorp.cz <http://www.webcorp.cz/> 
Tel.: (+420) 725 607 671, (+420) 725 607 670 

 

From: WebCorp s.r.o. | Jan Juříček [mailto:[email protected]] 
Sent: Monday, September 28, 2009 8:44 AM
To: [email protected]
Subject: [fw-general] Get localised values in another locale

 

Hi

 

I have a form, where I have a field with validator Date with set locale
cs_CZ. That results in a need to fill the date in cs_CZ format (dd.mm.yyyy).
Is there any automatic way, how could I get all such in another locale, to
be specific en_US? I'd like to automate the process when my user specifies
"28.9.2009" and I just take that value and insert it into the DATE column in
MySQL table (which can't store the localised value) . 

 

Thanks for any reply.

 

S pozdravem 

Jan Juříček
WebCorp s.r.o. 

Kancelář: Wichterlova 2372/10, 182 00 Praha
E-mail: [email protected] <mailto:[email protected]>  Web:
www.webcorp.cz <http://www.webcorp.cz/> 
Tel.: (+420) 725 607 671, (+420) 725 607 670 

 

Reply via email to