Use [DataBase]
ALTER TABLE Schema.TableName
ADD FieldName Bit NOT NULL DEFAULT 0 WITH VALUES
-
public bool IsDate(object value)
{
bool result = false;
string strDate = value.ToString();
try
{
DateTime dt = DateTime.Parse(strDate);
if(dt != DateTime.MinValue && dt != DateTime.MaxValue)
result = true;
}
catch (Exception ex)
{
result = false;
}
return result;
}0Add a comment
-
public bool IsNumeric(string value)
{
bool result = false;
try
{
Convert.ToInt64(value);
result = true;
}
catch (Exception ex)
{
result = false;
}
return result;
}0Add a comment
Add a comment