I want users to be able to enter a date format string in a text box so they can specify how they want a date value to be Displayed in their windows form

How can I validate this date format string entered in a text box so that they can enter only a valid C# Date format