Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Convert Shamsi Jalali Persian Date TimeStamp

//Convert Shamsi Date To TimeStamp
function getTimeStamp($date)
{
	$splitDateAndTime = explode(' ', $date);
	$date = explode('/', $splitDateAndTime[0]);
	$jalaliToGeorgian = jalali_to_gregorian($date[0], $date[1], $date[2], '/');
	return strtotime($jalaliToGeorgian . $splitDateAndTime[1]);
}
Comment

PREVIOUS NEXT
Code Example
Php :: no cache on browser back php 
Php :: laravel relationship example 
Php :: How can apply_filters be used to create a filter hook in wordpress 
Php :: cout post on category in controller laravel 
Php :: laravel query buider 
Php :: orwhere raw where condtion 
Php :: how to get name through id from mysql using php 
Php :: requires ext-pcntl 
Php :: Warning: Undefined array key "index_no" in C:xampphtdocs ruestudent eports.php on line 54 Fatal error: Uncaught TypeError: mysqli_fetch_array(): 
Php :: laravel How can I escase string in whereRaw 
Php :: onde que fica a praia escondida no roblox jo mulher maravilha 
Php :: buddy group hide notice join 
Php :: edit order of columns for wordpress 
Php :: Including ACF in a custom theme or plugin 
Php :: wp_handle_upload return uploaded file name 
Php :: auto complete order paid 
Php :: install tinymce php 
Php :: codeigniter without index.php not working 
Php :: add user role to wp admin page css 
Php :: old codestar textarea field 
Php :: !array_push($stack, "apple", "raspberry"); 
Php :: add document by api php 
Php :: wp-query 
Php :: php doctrine findby greater than 
Php :: Return the union of this RDD and another one 
Php :: How to Filter Your Posts & Pages by Custom Field in WordPress Dashboard 
Php :: null safe operator in php 
Php :: PHP SSRF Wrapper/URL Schema 
Php :: laravel faker car plate br 
Php :: Required parameter follows optional parameter (500 Internal Server Error) php 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =