You need to sign in to do that
Don't have an account?

writing a trigger as date of brith DOB set default date ...how plz check my code
Error: Compile Error: Illegal assignment from String to Date at line 6 column 1
trigger studentdata on Student_Particluars__c (before insert,before update) {
for(Student_Particluars__c std :Trigger.New){
std.phone__c ='909090099';
std.descripition__c = 'gopal naik';
std.DOB__c = '5/5/2016';
}
}
trigger studentdata on Student_Particluars__c (before insert,before update) {
for(Student_Particluars__c std :Trigger.New){
std.phone__c ='909090099';
std.descripition__c = 'gopal naik';
std.DOB__c = '5/5/2016';
}
}
Please mark this as the best answer if this helps