problem fetching Month Value !!

3 messages Options
Embed this post
Permalink
monks () problem fetching Month Value !!
Reply Threaded More More options
Print post
Permalink

hi
what is the best possible way to fetch Month from date format "2009/11/02"
in Page Template.

My date fields fetched into PT inside tal:define are :

  publish_start request/publicationdate_month_start;
  publish_end request/publicationdate_month_end;

Thanks ..

--

Regards,
Mayank Mathur





------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users

Regards,
Mayank
ajung () Re: problem fetching Month Value !!
Reply Threaded More More options
Print post
Permalink
Convert it into a DateTime() instance or use the DateTime API (you know now meanswhile
where you can find it :-)) or you use basic string operations for getting the substring.

-aj

monks wrote:
hi
what is the best possible way to fetch Month from date format "2009/11/02"
in Page Template.

My date fields fetched into PT inside tal:define are :

  publish_start request/publicationdate_month_start;
  publish_end request/publicationdate_month_end;

Thanks ..

--

Regards,
Mayank Mathur





------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-Users mailing list
Plone-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users
monks () Re: problem fetching Month Value !!
Reply Threaded More More options
Print post
Permalink

i've written intermediatery python script for doing this and it'll return
value  to PT.

Thanks
--

Regards,
Mayank Mathur


>
> Convert it into a DateTime() instance or use the DateTime API (you know
> now
> meanswhile
> where you can find it :-)) or you use basic string operations for getting
> the substring.
>
> -aj
>
>
> monks wrote:
>>
>>
>> hi
>> what is the best possible way to fetch Month from date format
>> "2009/11/02"
>> in Page Template.
>>
>> My date fields fetched into PT inside tal:define are :
>>
>>   publish_start request/publicationdate_month_start;
>>   publish_end request/publicationdate_month_end;
>>
>> Thanks ..
>>
>> --
>>
>> Regards,
>> Mayank Mathur
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and
>> stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Plone-Users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/plone-users
>>
>>
>
> --
> View this message in context:
> http://n2.nabble.com/problem-fetching-Month-Value-tp3930687p3930999.html
> Sent from the General Questions mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Plone-Users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/plone-users
>



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users

Regards,
Mayank