![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 8 of 8 total |
![]() |
Tue, Dec 29 2015 6:52 AM | Permanent Link |
Huseyin Aliz myBiss ApS | 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 AM | Permanent Link |
Raul ![]() | 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 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | 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 PM | Permanent Link |
Huseyin Aliz myBiss ApS | 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 ![]() 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 PM | Permanent Link |
Huseyin Aliz myBiss ApS | 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 PM | Permanent Link |
Huseyin Aliz myBiss ApS | Tim,
Can you please posy the function here if it's ready? ![]() 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 PM | Permanent Link |
Huseyin Aliz myBiss ApS | Tim,
Can you please post the function here if it's ready? ![]() 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 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Hüseyin,
<< Can you please post the function here if it's ready? ![]() It's not done. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Wednesday, November 29, 2023 at 09:43 PM | Privacy Policy![]() © 2023 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |