Scholar Year

General support questions.
Posts: 3
Joined: Wed Jan 12, 2005 12:40 pm
PostPosted: Wed Jan 12, 2005 12:50 pm
How can I create a calculation field that automatically display the current scholar year that start on August and finnish on July?
example: Current Scholar Year: 2004-2005
Juan Alberto
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Wed Jan 12, 2005 2:06 pm
Hi Juan,

I'm not sure on what day in July or August your year flips over, but there has to be some date. In the calculation below it is assumed to be August 1st, but you can make it whatever you like by changing the month and day of the "changeon" variable.

Hope this helps,

John

Code: Select all
Let ( [
d = Get ( CurrentDate ) ;
changeon = Date ( 8 ; 1 ; Year ( d ) )
] ;

Case (
d >= changeon ;
Year ( d ) & " - " & Year ( d ) + 1 ;
Year ( d ) - 1 & " - " & Year ( d )
) // End Case

) // End Let
John Sindelar
SeedCode

Return to General Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron
(855) SEEDCODE
[email protected]
Follow us: