Location: PHPKode > projects > Personal Finance Manager > functions.php
<?
/*
	Scryed Labs Financial Manager
	Copyright (c) 2005-2007, Scryed Labs
	http://www.scryedlabs.com
	
	Financial Manager is copyrighted free software by Waheed Ayubi <hide@address.com>.
	You can redistribute it and/or modify it under either the terms of the GPL
	(see COPYING.txt), or the terms of the Artistic License (see README.txt).
	
	http://sourceforge.net/projects/financemonitor/
*/
?>
<?
	function returnDate ($month, $year, $day = "01") {
		
		## Makes sure that there are no 13 months.
		if ( $month > 12 ) {
			$month -= 12;
			$year++;
		}
		
		if (strlen($month) == 1) {
			$formattedmonth = "0".$month;
		} else {
			$formattedmonth = $month;
		}
		return $year."-".$formattedmonth."-".$day;
	}
	
	function pa ($string) {
		print "<pre style='color: #036;'>";
		print_r ($string);
		print "</pre>";
	}
	
?>
Return current item: Personal Finance Manager