-
Notifications
You must be signed in to change notification settings - Fork 107
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
مشکل تبدیل تاریخ شمسی به میلادی #62
Comments
این کد رو کجا استفاده کردید؟ توی ویو؟ چون خروچی این متد یه آرایهست و
احتمالا شما میخواستید اون رو چاپ کنید که همچین ارروی داده
|
بله توی ویو |
به کاربر تاریخ شمسی رو نشون میدم. حالا میخوام وقتی ادیتش کرد مقدار ادیت شده رو به میلادی برگردونم و توی دیتابیس ذخیره کنم |
jdtogregorian(1395, 2, 18) |
لطف کن داکیومنت رو بخون و از توابعی که گفته شده استفاده کن. اون تابعی که استفاده کردی کارش تبدیل تاریخ توی سطح پایینتره و یه جوری دیپندسی برای کلاس اصلیه. |
This code fails in runtime:
If one change it to Error:
--- Reading the source code, it should be changed to
I would suggest use a wrapper that works with 'Y/m/d' familiar paradigm. I can help with this. |
@hmahdi-s |
(11ب.ظ29UTC292512UTC) سلام بنده که میخوام تبدیل کنم به شمسی تاریخ به هم میخوره و تبدیل میشه به |
|
@faridfr |
احتمالا فرمت خروجی رو مشخص نکردید . وقتی فرمت رو بصورت |
@faridfr |
سلام |
برای تبدیل تاریخ شمسی به میلادی از متد
toGregorian
استفاده می کنم. منتهی ارور دریافت میکنم.
\Morilog\Jalali\CalendarUtils::toGregorian(1395,4,15)
اروری که دریافت می کنم:
htmlspecialchars() expects parameter ۱ to be string, array given
نسخه لاراولم ۵.۵ هست
نسخه پکیجی که نصب کردم :
3.*
The text was updated successfully, but these errors were encountered: