How to apply a ghost text and a Date format at the same time?
I placed a default format text such as YYYY-MM-DD into a field, and it disappears when I click on a field. This is done by applying java script, but the format of that field is not fixed as yyyy-mm-dd, because I wrote the script into the Custom Format. Therefore, the date can be typed as 2017-03-17(a) as well as 20170317(b). I want to fix the format as (a), consistent to the ghost text.
How can I apply the Date format into the field while a default ghost test remains?