Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread Current_week function
Tue, Dec 29 2015 6:52 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi All,

Can anyone help with a function to get the current weeknumber?

Thanks in advance,

Regards,
Hüseyin A.
Tue, Dec 29 2015 11:50 AMPermanent Link

Raul

Team Elevate Team Elevate

On 12/29/2015 6:52 AM, Hüseyin Aliz wrote:
> Can anyone help with a function to get the current weeknumber?

Don't have one for EWB but you should be able to adapt JS version rather
easily (or even just add it as external function).

The "hard" part is day of week you want to have as start (Sun or Mon)
and then calculating the first week of year you're interested in - rest
is then just subtract from current date and div by 7 days worth of msec.

if you want ISO-8601 version then some sample JS code :

http://stackoverflow.com/questions/6117814/get-week-of-year-in-javascript-like-in-php

http://weeknumber.net/how-to/javascript


Raul
Tue, Dec 29 2015 12:53 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Huseyin,

<< Can anyone help with a function to get the current weeknumber? >>

I was surprised to see that I hadn't added that function.  I'll add it to the list for the next release.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Dec 29 2015 4:29 PMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi Raul,

Thanks for the info, i will look at the links.. It could be nice with a
ewb function (Tim replied he will add it to the next release), but i
think i can use a dbisam sql query also Smile

Regards,
Hüseyin

On 29-12-2015 17:50, Raul wrote:
> On 12/29/2015 6:52 AM, Hüseyin Aliz wrote:
>> Can anyone help with a function to get the current weeknumber?
>
> Don't have one for EWB but you should be able to adapt JS version
> rather easily (or even just add it as external function).
>
> The "hard" part is day of week you want to have as start (Sun or Mon)
> and then calculating the first week of year you're interested in -
> rest is then just subtract from current date and div by 7 days worth
> of msec.
>
> if you want ISO-8601 version then some sample JS code :
>
> http://stackoverflow.com/questions/6117814/get-week-of-year-in-javascript-like-in-php
>
>
> http://weeknumber.net/how-to/javascript
>
>
> Raul
>
Tue, Dec 29 2015 4:30 PMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi Tim,

Thank you, it will be nice. Is it possible to have this function in
dbisam also?

Regards,
Hüseyin

On 29-12-2015 18:53, Tim Young [Elevate Software] wrote:
> Huseyin,
>
> << Can anyone help with a function to get the current weeknumber? >>
>
> I was surprised to see that I hadn't added that function.  I'll add it to the list for the next release.
>
> Tim Young
> Elevate Software
> www.elevatesoft.com
>
Thu, Jan 28 2016 5:11 PMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Tim,

Can you please posy the function here if it's ready? Smile

Thanks,
Hüseyin

On 29-12-2015 18:53, Tim Young [Elevate Software] wrote:
> Huseyin,
>
> << Can anyone help with a function to get the current weeknumber? >>
>
> I was surprised to see that I hadn't added that function.  I'll add it to the list for the next release.
>
> Tim Young
> Elevate Software
> www.elevatesoft.com
>
Thu, Jan 28 2016 5:12 PMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Tim,

Can you please post the function here if it's ready? Smile

Thanks,
Hüseyin

On 29-12-2015 18:53, Tim Young [Elevate Software] wrote:
> Huseyin,
>
> << Can anyone help with a function to get the current weeknumber? >>
>
> I was surprised to see that I hadn't added that function.  I'll add it to the list for the next release.
>
> Tim Young
> Elevate Software
> www.elevatesoft.com
>
Fri, Jan 29 2016 10:44 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Hüseyin,

<< Can you please post the function here if it's ready? Smile>>

It's not done.

Tim Young
Elevate Software
www.elevatesoft.com
Image