Help!

Is there a way to convert a date to an accounting period?

eg.

21/7/10 to display 1

3/9/10 to display 3

date can be in a different format if necessary.

any hints will be appreciated!