Re: Date Problem
Thanks a lot, I set the locale property to 'es-UY', and works perfect. Ian Roughley wrote: try setting it to a locale that uses a date format of dd/MM/. rrecoba wrote: I don´t have the struts.locale, neither th struts.properties. This is the problem. Ian Roughley wrote: what is the locale set to? It is the struts.locale property in the struts.xml or struts.properties /Ian rrecoba wrote: Hi, thanks for your answer. I understand that the date tag is for showing a date not for input, is this ok?. My problem is that, when the user puts a date in a form input field, in my action i get in other format. (I cannot use datetimepicker) Thanks.- Ian Roughley wrote: I believe its localization. try the date tag to specify a date format. /Ian rrecoba wrote: Hi, I´m using an input field where the user must put a date in the format dd/MM/ But in the Action, when struts 2 set the value for the date attribute, the format change´s to MM/dd/ , does anyone know why this is happening? Thanks a lot.- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Date-Problem-tf4144758.html#a11865219 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Date Problem
I believe its localization. try the date tag to specify a date format. /Ian rrecoba wrote: Hi, I´m using an input field where the user must put a date in the format dd/MM/ But in the Action, when struts 2 set the value for the date attribute, the format change´s to MM/dd/ , does anyone know why this is happening? Thanks a lot.- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Date Problem
try setting it to a locale that uses a date format of dd/MM/. rrecoba wrote: I don´t have the struts.locale, neither th struts.properties. This is the problem. Ian Roughley wrote: what is the locale set to? It is the struts.locale property in the struts.xml or struts.properties /Ian rrecoba wrote: Hi, thanks for your answer. I understand that the date tag is for showing a date not for input, is this ok?. My problem is that, when the user puts a date in a form input field, in my action i get in other format. (I cannot use datetimepicker) Thanks.- Ian Roughley wrote: I believe its localization. try the date tag to specify a date format. /Ian rrecoba wrote: Hi, I´m using an input field where the user must put a date in the format dd/MM/ But in the Action, when struts 2 set the value for the date attribute, the format change´s to MM/dd/ , does anyone know why this is happening? Thanks a lot.- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Date Problem
I don´t have the struts.locale, neither th struts.properties. This is the problem. Ian Roughley wrote: what is the locale set to? It is the struts.locale property in the struts.xml or struts.properties /Ian rrecoba wrote: Hi, thanks for your answer. I understand that the date tag is for showing a date not for input, is this ok?. My problem is that, when the user puts a date in a form input field, in my action i get in other format. (I cannot use datetimepicker) Thanks.- Ian Roughley wrote: I believe its localization. try the date tag to specify a date format. /Ian rrecoba wrote: Hi, I´m using an input field where the user must put a date in the format dd/MM/ But in the Action, when struts 2 set the value for the date attribute, the format change´s to MM/dd/ , does anyone know why this is happening? Thanks a lot.- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Date-Problem-tf4144758.html#a11798975 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Date Problem
Hi, thanks for your answer. I understand that the date tag is for showing a date not for input, is this ok?. My problem is that, when the user puts a date in a form input field, in my action i get in other format. (I cannot use datetimepicker) Thanks.- Ian Roughley wrote: I believe its localization. try the date tag to specify a date format. /Ian rrecoba wrote: Hi, I´m using an input field where the user must put a date in the format dd/MM/ But in the Action, when struts 2 set the value for the date attribute, the format change´s to MM/dd/ , does anyone know why this is happening? Thanks a lot.- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Date-Problem-tf4144758.html#a11796054 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Date Problem
what is the locale set to? It is the struts.locale property in the struts.xml or struts.properties /Ian rrecoba wrote: Hi, thanks for your answer. I understand that the date tag is for showing a date not for input, is this ok?. My problem is that, when the user puts a date in a form input field, in my action i get in other format. (I cannot use datetimepicker) Thanks.- Ian Roughley wrote: I believe its localization. try the date tag to specify a date format. /Ian rrecoba wrote: Hi, I´m using an input field where the user must put a date in the format dd/MM/ But in the Action, when struts 2 set the value for the date attribute, the format change´s to MM/dd/ , does anyone know why this is happening? Thanks a lot.- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]