Re: Re: [firebird-support] Extract week of the year (within year)

2015-03-24 Thread liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
Thanks all,   i forgot about another locales like Sunday first day. I see that supporting official function in FB will be problematic   then i do this in this way SELECT   EXTRACT(YEAR FROM FLD_DATE), CASE      WHEN EXTRACT(yearday FROM FLD_DATE)100 AND EXTRACT(WEEK FROM FLD_DATE)50 THEN 0     

RE: [firebird-support] Extract week of the year (within year)

2015-03-24 Thread Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
On Tue, 24 Mar 2015 09:23:54 +0100, Svein Erling Tysvær svein.erling.tysv...@kreftregisteret.no [firebird-support] firebird-support@yahoogroups.com wrote: Actually, Karol, “week within year” is not the week, Karol. 1 January could be week 53 and 31 December could be week 1. If you want to

Re: [firebird-support] Extract week of the year (within year)

2015-03-24 Thread Kjell Rilbe kjell.ri...@datadia.se [firebird-support]
=?utf-8?B?U3ZlaW4gRXJsaW5nIFR5c3bDpnI=?= svein.erling.tysv...@kreftregisteret.no [firebird-support] skrev: is possible to get week of the year within year? I see that built in functions only support ISO-8601 (or i do not know some parameter) Actually, Karol, “week within year” is not the

RE: [firebird-support] Extract week of the year (within year)

2015-03-24 Thread Svein Erling Tysvær svein.erling.tysv...@kreftregisteret.no [firebird-support]
is possible to get week of the year within year? I see that built in functions only support ISO-8601 (or i do not know some parameter) Actually, Karol, “week within year” is not the week, Karol. 1 January could be week 53 and 31 December could be week 1. If you want to consider 1 January