Click here to Skip to main content
15,921,174 members

Comments by Murugan.NM (Top 20 by date)

Murugan.NM 15-Nov-14 0:43am View    
Solved Myself
Murugan.NM 4-Jul-14 3:21am View    
I need to use formula with this field. if i declare nullable CertificateNo, then how to make formulas.
Murugan.NM 4-Jul-14 1:00am View    
Date
Murugan.NM 29-Jun-14 2:43am View    
Hi Sir,

I tried but not it passed null value
What is wrong with i tried the following
DateTime defaultdate = DateTime.Parse("1753-01-01");

DateTime ContractDatetime = new DateTime();
if (invoice.ContractDatetime.Date == defaultdate.Date)
{
Console.WriteLine("null");
}
else
{
Console.WriteLine(invoice.ContractDatetime.ToString());
}
Murugan.NM 29-Jun-14 2:01am View    
Hi Sir,
if (invoice.ContractDatetime = "01/01/1753")
{
invoice.ContractDatetime = "";
}
I tried the above. it throws the following errors
Error 1 Cannot implicitly convert type 'string' to 'System.DateTime'
Error 2 Cannot implicitly convert type 'System.DateTime' to 'bool'
Error 3 Cannot convert null to 'System.DateTime' because it is a value type