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

is there method like isJalali #163

Open
sirosfakhri opened this issue Aug 28, 2023 · 1 comment
Open

is there method like isJalali #163

sirosfakhri opened this issue Aug 28, 2023 · 1 comment

Comments

@sirosfakhri
Copy link

sirosfakhri commented Aug 28, 2023

in my project, I need to check if the date is Jalali or Gregorian?!
so, is there any method like this?

\Morilog\Jalali\CalendarUtils::isJalali('1402-06-06'); // TRUE
\Morilog\Jalali\CalendarUtils::isJalali('2023-08-23'); // FALSE
@sirosfakhri sirosfakhri changed the title checkDate always return true is there method like isJalali Aug 28, 2023
@alisalehi1380
Copy link

Hello to mr. Morteza Parvini and Siros Fakhri.

image

because checkdate() func native in php supportes this :
image
numbers.

and that's way isJalali() function returns true in both cases!

and in the related testes :
image
this issue has not tested.

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