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

selectedDate یا setDate new Date('اگر خالی باشه') #313

Open
mahdisky opened this issue Dec 25, 2023 · 0 comments
Open

selectedDate یا setDate new Date('اگر خالی باشه') #313

mahdisky opened this issue Dec 25, 2023 · 0 comments

Comments

@mahdisky
Copy link

mahdisky commented Dec 25, 2023

سلام
وقتی از selectedDate یا setDate استفاده میکنم برای تاریخ پیش فرض اگر مقدار داخل NEW DATE خالی باشه خطا میده.
new Date('2018/9/30')

مثلا فرض کنید فرم ویرایشی دارم که تاریخ میتونه یا پر باشه یا خالی که سمت سرور پر میشه، زمانی که اگر خالی باشه خطا میده و اجرا نمیشه تقویم.
راه حل چی هست؟

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

1 participant