Javascript algorithm that calculates week number in Fiscal Year

Posted by ForeignerBR on Stack Overflow See other posts from Stack Overflow or by ForeignerBR
Published on 2010-05-05T02:39:16Z Indexed on 2010/05/05 2:48 UTC
Read the original article Hit count: 244

Hi, I have been looking for a Javascript algorithms that gives me the week number of a given Date object within a custom fiscal year. The fiscal year of my company starts on 1 September and ends on 31 August.

Say today happens to be September 1st and I pass in a newly instanced Date object to this function; I would expect it to return 1.

Hopefully someone will be able to help me with it.

thanks,

fbr

© Stack Overflow or respective owner

Related posts about week-number

Related posts about fiscal-year