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

چرا استرینگ #48

Open
Mahdihp opened this issue Nov 24, 2021 · 4 comments
Open

چرا استرینگ #48

Mahdihp opened this issue Nov 24, 2021 · 4 comments
Assignees

Comments

@Mahdihp
Copy link

Mahdihp commented Nov 24, 2021

برای برای باند کردن مقدار تاریخ از رشته استفاده کردید من مقایرم DateTime هست

@farshaddavoudi
Copy link
Owner

سلام وقت بخیر
معمولا ما پراپرتی بایند تاریخ مخصوصا تاریخ شمسی رو استرینگ می‌گیریم و موقع فرستادن به بک اند یا تو خود بک اند به DateTime تبدیلش می‌کنیم. ولی چیزی که شما می‌فرمایید هم ولیده روی این مورد کار می‌کنم که بتونه مستقیم به DateTime بایند بشه.

@EsmaeelAmarloo
Copy link

سلام
لطفا dateonly رو هم در نظر بگیرید

@farshaddavoudi
Copy link
Owner

Thanks @EsmaeelAmarloo

It's been like a long-time wish and I cannot ignore it anymore!

I will take a serious look at this after the #77 issue (OnChange in EditForm not working) is addressed

@farshaddavoudi farshaddavoudi self-assigned this Nov 23, 2023
@farshaddavoudi
Copy link
Owner

farshaddavoudi commented Nov 23, 2023

@EsmaeelAmarloo I've tried for a couple of hours to make it work but unfortunately, there is not any easy solution for this as it needs a complete refactor and new implementation to make the component generic and address the issue which is not possible at the moment considering my limited time. I keep this issue open so that maybe in the future, I can work on it and finally make it generic. Of course, any contribution is welcome as well. Having said that, it's not a breaking change or something that prevents you from using the library and you can use the datepicker in its current state without any problem. Maybe the only drawback is manually converting of string date to a DateTime or DateOnly date to talk to your backend.

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

When branches are created from issues, their pull requests are automatically linked.

3 participants