public enum WebWizDateFormat
{
DDMMYY,
MMDDYY,
YYDDMM,
YYMMDD
}
public class WebWizForumUser
{
public WebWizDateFormat DateFormat { get; set; }
public WebWizForumUser()
{
this.DateFormat = WebWizDateFormat.DDMMYY;
HttpContext.Current.Response.Write(this.DateFormat);
}
}
This works, but when I response.write it needs to come out in the format “dd/mm/yy”, how can I do this?
The simple answer is don’t use an enum for this. How about a static class?
(Just a sample, rename the fields to whatever makes sense for you.)