Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gregorian to Jalali #26

Closed
dlbaran opened this issue Nov 24, 2020 · 1 comment
Closed

Gregorian to Jalali #26

dlbaran opened this issue Nov 24, 2020 · 1 comment

Comments

@dlbaran
Copy link

dlbaran commented Nov 24, 2020

Hi,
I need to display the date stored in the Gregorian database in Jalali. How can I do this using your library? My codes are as follows:

elseif($column_type_lookup[$column_name] == 'date'){ //date with format MM/DD/YYYY
if(!empty($row[$column_name]) && ($row[$column_name] != '0000-00-00')){
$form_data[$i][$j] = date('M d, Y',strtotime($row[$column_name]));
}

				if($column_name == 'date_created' || $column_name == 'date_updated'){
					$form_data[$i][$j] = mf_short_relative_date($row[$column_name]);
				}
			}elseif($column_type_lookup[$column_name] == 'europe_date'){ //date with format DD/MM/YYYY
				
				if(!empty($row[$column_name]) && ($row[$column_name] != '0000-00-00')){
					$form_data[$i][$j]  = date('d M Y',strtotime($row[$column_name]));
				}
			}
@arashm
Copy link
Owner

arashm commented Mar 6, 2021

I don't understand what is this. PHP?

@arashm arashm closed this as completed Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants