Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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]);
}
 
PREVIOUS NEXT
Tagged: #Convert #Shamsi #Jalali #Persian #Date #TimeStamp
ADD COMMENT
Topic
Name
1+4 =