Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get week number in a given date

333 views
Skip to first unread message

POLACHAN

unread,
Dec 16, 2008, 7:07:09 AM12/16/08
to
Dear All,

Is there any mathod in powerbuilder to get week number of the given date.

With thanks

Polachan
---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp

Chris Pollach

unread,
Dec 16, 2008, 8:03:12 AM12/16/08
to
Hi Polachan;

FYI: The PFC has a NVUO object (pfc_n_cst_datetime) that has a
WeekNumber method that would return that for you. If you are not using the
PFC you can still transform the code segment into your application.

HTH

--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com


"POLACHAN" <polac...@yahoo.com> wrote in message
news:494799ed$1@forums-1-dub...

jeanpaul

unread,
Dec 16, 2008, 8:10:49 AM12/16/08
to
> Dear All,
>
> Is there any mathod in powerbuilder to get week number of
> the given date.
>
> With thanks
>
> Polachan


Hello,

If you have ORACLE, you can get it with :
Select to_char(sysdate,'W') from dual;

HTH

Unknown

unread,
Dec 16, 2008, 8:28:21 AM12/16/08
to
Thanks Chris Pollach

And please let me know how I can get the program segment of pfc_n_cst_datetime.
I am not using the PFC. Please let me know

With thanks and Regards

Polachan

On 16 Dec 2008 05:03:12 -0800,
in sybase.public.powerbuilder.general

Chris Pollach

unread,
Dec 16, 2008, 8:58:18 AM12/16/08
to

You can download the PFC for free from either Sybase's CodeXchange website
at
http://www.sybase.com/detail?id=1059036

- or -

The PFC website at: http://www.codeplex.com/pfc


HTH


"Polac...@yahoo.com" <polachanpp> wrote in message
news:4947acf5@forums-1-dub...

0 new messages