Picker for a date setting?

Hi all,

Just started to develop a new plugin that I needed and one of the settings is a date/time value. Is there a preferred way to set this up or do I need to attach a datetime picker to a text property?

Also is there a standard way to provide setting validation feedback? For instance just want to let the user know that the value isn’t acceptable ie. min length >5 etc.

Thanks
Richard