• Shravankumar
  • NEWBIE
  • 5 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies


Hi,

    I want to insert a date through apex code,how can i mention the date data type in apex.. 


Training__c obj=new Training__C();
obj.name='T50';
insert obj;
batch__C b=new batch__C();
b.training__c = obj.id;
b.End_Date__c = 
b.Start_Date__c = 

insert b; 


Hi,

    I want to insert a date through apex code,how can i mention the date data type in apex.. 


Training__c obj=new Training__C();
obj.name='T50';
insert obj;
batch__C b=new batch__C();
b.training__c = obj.id;
b.End_Date__c = 
b.Start_Date__c = 

insert b;