Search
 
SCRIPT & CODE EXAMPLE
 

PHP

financial year calculation in php

function get_finacial_year_range() {
    $year = date('Y');
    $month = date('m');
    if($month<4){
        $year = $year-1;
    }
    $start_date = date('d/m/Y',strtotime(($year).'-04-01'));
    $end_date = date('d/m/Y',strtotime(($year+1).'-03-31'));
    $response = array('start_date' => $start_date, 'end_date' => $end_date);
    return $response;
}
Comment

PREVIOUS NEXT
Code Example
Php :: Target [LaravelFortifyContractsCreatesNewUsers] is not instantiable. 
Php :: csv file import to mysqli using php 
Php :: does xampp install php 
Php :: bind param php 
Php :: symfony get api data 
Php :: artisan app name 
Php :: php ternary string 
Php :: change url wordpress 
Php :: array_push php 
Php :: xdebug phpstorm 
Php :: true not true acf 
Php :: php 2 decimal even if not exists 
Php :: overloading and overriding in php 
Php :: livewire model bind item in array 
Php :: php slice string by character 
Php :: laravel test filter 
Php :: onclick on image php 
Php :: php variable definition 
Php :: php fetch return false 
Php :: if ip is 
Php :: laravel many to many relationship 
Php :: Publish Spatie Laravel Permission 
Php :: how to know who added product in magento 
Php :: magento Fatal error: Allowed memory size of 134217728 bytes exhausted 
Php :: what is the use of closure function in php 
Php :: laravel, if -get() array is not emtpy 
Php :: packagist carbon 
Php :: laravel create command tutorial 
Php :: error handling in laravel 
Php :: run laravel without php artisan serve 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =