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
djohnconPosted Feb 19, 2005, 3:59 PM
shimtannyPosted Feb 18, 2005, 7:06 AM
shimtannyPosted Feb 18, 2005, 3:59 AM
sdnaffiPosted Feb 17, 2005, 11:21 PM
shimtannyPosted Feb 17, 2005, 10:00 AM