how to give a condition in if statement only if the date field is entered
Hello,With the RichWidgets 'Date_MonthName' and 'Date_PrettyFormat' actions you can modify a datetime to be written (and thus displayed) as wishfull.Charles, don't reallyunderstand you question, what do you mean?Kind regards,Evert
Hi,
I also found error when using DateFormat "%d-%b-%Y" to display date with "DD-MMM-YYYY" format.
New form will display "DD-%b-YYYY" in the date field with the format above.And for saved data will displayed as "YYYY-MM-DD" format as set in the environment.
When select the date from calendar, the format displayed correctly.But when try to save got validation message "Date expected!".
Currently workaround using javascript in page onLoad event to fix the date format display.And for saving data, I am using additional step in Server Action to covert the date value to "YYYY-MM-DD" format before saving.
Is it correct workaround? Or any easier way?
Thanks.
Regards,Herry
Hi Herry,
I am having the same issue :(
When saving do you use Client & Server validation or only Server?
Can you please share the javascript in page onLoad event that you used?
Thank you in advance.
Michal
Also encountering the same issue. Our application is going to be used by both UK and US users and I need to cater for both date formats of DD-MM-YYYY (UK) and MM-DD-YYYY (US)
The right way to use format in that component is "%d-%m-%Y" using % before each format you want