Date Formatting
Hey I tried this,
private void ReceiptDateFormat(object sender, ConvertEventArgs c)
{
try
{
DateTime dt = (DateTime)c.Value;
c.Value = dt.ToString("dd/MM/yyyy");
}
catch(Exception ex)
{
MessageBox.Show("Error #: " + ", " + ex.Message,Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
This gives an error saying InvalidCastingException
Solve this
pls

shimtannyRank #3,312 · 434 reputationPosted Feb 17, 2005, 5:00 AM EST
sdnaffi12 reputationPosted Feb 17, 2005, 6:21 PM EST
shimtannyRank #3,312 · 434 reputationPosted Feb 17, 2005, 10:59 PM EST
shimtannyRank #3,312 · 434 reputationPosted Feb 18, 2005, 2:06 AM EST
djohncon16 reputationPosted Feb 19, 2005, 10:59 AM EST