-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
<?php | ||
|
||
//include the class once | ||
include_once('./class/ukTaxWeek.php'); | ||
include_once './class/ukTaxWeek.php'; | ||
|
||
//instantiate the class | ||
$taxWeek = new UKTaxWeeks; | ||
$taxWeek = new UKTaxWeeks(); | ||
|
||
//Get the tax week of the date | ||
$myDate = "01/06/2018"; | ||
echo "The tax week of this year is: " . $taxWeek->getTaxWeekByDate($myDate) . "<br />"; | ||
$myDate = '05/04/2018'; | ||
echo "Comparing date $myDate <br />"; | ||
echo 'The tax week of this year is: '.$taxWeek->getTaxWeekByDate($myDate).'<br />'; | ||
|
||
//Get tax week of the date when the financial year starts on another day (1st February, for example - 01/02) | ||
$financialYearStartDate = "01/02"; | ||
echo "if the tax year started on $financialYearStartDate the financial week would be " . $taxWeek->getTaxWeekByDate($myDate,$financialYearStartDate); | ||
|
||
?> | ||
$financialYearStartDate = '01/10'; | ||
echo "if the tax year started on $financialYearStartDate the financial week would be ".$taxWeek->getTaxWeekByDate($myDate, $financialYearStartDate); |