N
nik
I'm having problems with date formatting...
this works:
string testD = "04-08-2004";
DateTime dt = DateTime.Parse(testD);
this doesn't:
string m_reviewDate = getPHContent.GetContent
("MDReviewDate", m_currentPosting);
DateTime dt = DateTime.Parse(m_reviewDate);
Error: The string was not recognized as a valid Date Time.
m_reviewDate is just getting content out of a CMS
placeholder, the format is the same as the testD string.
Any ideas?
this works:
string testD = "04-08-2004";
DateTime dt = DateTime.Parse(testD);
this doesn't:
string m_reviewDate = getPHContent.GetContent
("MDReviewDate", m_currentPosting);
DateTime dt = DateTime.Parse(m_reviewDate);
Error: The string was not recognized as a valid Date Time.
m_reviewDate is just getting content out of a CMS
placeholder, the format is the same as the testD string.
Any ideas?