Skip to main content
deleted 54 characters in body
Source Link
sfdcfox
  • 501.7k
  • 21
  • 473
  • 828

You don't need to parse the date yourself; JavaScript will do it for you if you use the new Date constructor.

onclick="myfunction('{!c.ID}', 
                new Date('{!(c.Start_Date__c).format()}'), 
                '{!c.Reason__c}');"

You don't need to parse the date yourself; JavaScript will do it for you if you use the new Date constructor.

onclick="myfunction('{!c.ID}', 
                new Date('{!(c.Start_Date__c).format()}'), 
                '{!c.Reason__c}');"

You don't need to parse the date yourself; JavaScript will do it for you if you use the new Date constructor.

onclick="myfunction('{!c.ID}', new Date('{!c.Start_Date__c}'),  '{!c.Reason__c}');"
Source Link
sfdcfox
  • 501.7k
  • 21
  • 473
  • 828

You don't need to parse the date yourself; JavaScript will do it for you if you use the new Date constructor.

onclick="myfunction('{!c.ID}', 
                new Date('{!(c.Start_Date__c).format()}'), 
                '{!c.Reason__c}');"