You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by LuSilice <fa...@gmail.com> on 2009/07/30 18:47:23 UTC

Convert a calendar data type to string

Hello. 
I have a calendar daya type in  my .jx and my question is if i have convert
that calendar data type to a string and how to do it.
Thank you
-- 
View this message in context: http://www.nabble.com/Convert-a-calendar-data-type-to-string-tp24742317p24742317.html
Sent from the Lenya - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Convert a calendar data type to string

Posted by LuSilice <fa...@gmail.com>.
Well, Perhaps I didn't explain it correctly.
On screen it's shown a square with the days for a month, as in traveller
websites when you choose the days for your holiday, then the user choose one
day and what I store in my .java is a Calendar data type not a Date (this
type stores all the month). What I need to show in my .jx is the value for
that day in format (YYYY-MM-DD) getting it from the Calendar date type.



Thorsten Scherler wrote:
> 
> On Fri, 2009-07-31 at 06:30 -0700, LuSilice wrote:
>> Yes, I mean a calendar data type. My jx is a part of a usecase. Thank you
>> very much
>> 
> 
> Hmm, you did not answer my question, but I reckon you mean Date. In your
> usecase class you can do something like:
> 
> String date = getParameterAsString(PARAM_DATE);
> 
> If you need to convert stuff the following may give you a hint:
> private SimpleDateFormat format = new SimpleDateFormat("yyyy-MM");
> 
> Date date = format.parse(getParameterAsString(PARAM_DATE));
> 
> HTH
> 
> salu2
> 
>> Thorsten Scherler-3 wrote:
>> > 
>> > On Thu, 2009-07-30 at 09:47 -0700, LuSilice wrote:
>> >> Hello. 
>> >> I have a calendar daya type in  my .jx and my question is if i have
>> >> convert
>> >> that calendar data type to a string and how to do it.
>> > 
>> > Not sure what you mean with "calendar daya type" you mean a date?
>> > Further the jx is part of a usecase? We need more information to help
>> > you.
>> > 
>> > salu2
>> > 
>> >> Thank you
>> > -- 
>> > Thorsten Scherler <thorsten.at.apache.org>
>> > Open Source Java <consulting, training and solutions>
>> > 
>> > Sociedad Andaluza para el Desarrollo de la Sociedad 
>> > de la Información, S.A.U. (SADESI)
>> > 
>> > 
>> > 
>> > 
>> > 
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> > For additional commands, e-mail: user-help@lenya.apache.org
>> > 
>> > 
>> > 
>> 
> -- 
> Thorsten Scherler <thorsten.at.apache.org>
> Open Source <consulting, training and solutions>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Convert-a-calendar-data-type-to-string-tp24742317p24780303.html
Sent from the Lenya - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Convert a calendar data type to string

Posted by Thorsten Scherler <th...@apache.org>.
On Fri, 2009-07-31 at 06:30 -0700, LuSilice wrote:
> Yes, I mean a calendar data type. My jx is a part of a usecase. Thank you
> very much
> 

Hmm, you did not answer my question, but I reckon you mean Date. In your
usecase class you can do something like:

String date = getParameterAsString(PARAM_DATE);

If you need to convert stuff the following may give you a hint:
private SimpleDateFormat format = new SimpleDateFormat("yyyy-MM");

Date date = format.parse(getParameterAsString(PARAM_DATE));

HTH

salu2

> Thorsten Scherler-3 wrote:
> > 
> > On Thu, 2009-07-30 at 09:47 -0700, LuSilice wrote:
> >> Hello. 
> >> I have a calendar daya type in  my .jx and my question is if i have
> >> convert
> >> that calendar data type to a string and how to do it.
> > 
> > Not sure what you mean with "calendar daya type" you mean a date?
> > Further the jx is part of a usecase? We need more information to help
> > you.
> > 
> > salu2
> > 
> >> Thank you
> > -- 
> > Thorsten Scherler <thorsten.at.apache.org>
> > Open Source Java <consulting, training and solutions>
> > 
> > Sociedad Andaluza para el Desarrollo de la Sociedad 
> > de la Información, S.A.U. (SADESI)
> > 
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> > For additional commands, e-mail: user-help@lenya.apache.org
> > 
> > 
> > 
> 
-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source <consulting, training and solutions>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Convert a calendar data type to string

Posted by LuSilice <fa...@gmail.com>.
Yes, I mean a calendar data type. My jx is a part of a usecase. Thank you
very much

Thorsten Scherler-3 wrote:
> 
> On Thu, 2009-07-30 at 09:47 -0700, LuSilice wrote:
>> Hello. 
>> I have a calendar daya type in  my .jx and my question is if i have
>> convert
>> that calendar data type to a string and how to do it.
> 
> Not sure what you mean with "calendar daya type" you mean a date?
> Further the jx is part of a usecase? We need more information to help
> you.
> 
> salu2
> 
>> Thank you
> -- 
> Thorsten Scherler <thorsten.at.apache.org>
> Open Source Java <consulting, training and solutions>
> 
> Sociedad Andaluza para el Desarrollo de la Sociedad 
> de la Información, S.A.U. (SADESI)
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Convert-a-calendar-data-type-to-string-tp24742317p24756440.html
Sent from the Lenya - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Convert a calendar data type to string

Posted by Thorsten Scherler <th...@juntadeandalucia.es>.
On Thu, 2009-07-30 at 09:47 -0700, LuSilice wrote:
> Hello. 
> I have a calendar daya type in  my .jx and my question is if i have convert
> that calendar data type to a string and how to do it.

Not sure what you mean with "calendar daya type" you mean a date?
Further the jx is part of a usecase? We need more information to help
you.

salu2

> Thank you
-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>

Sociedad Andaluza para el Desarrollo de la Sociedad 
de la Información, S.A.U. (SADESI)





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org