function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bca321bca321 

Apex error

Message Edited by bca321 on 03-10-2009 07:41 PM
SuperfellSuperfell
where's your code? what exactly's not working? try asking more specific questions.
bca321bca321
Message Edited by bca321 on 03-10-2009 07:42 PM
SuperfellSuperfell

So, do some debugging, where is it going wrong? is the lines array right? is your regex matching (is matchFound ever true).

 

If you want to call your customDate function, its

Date someDate = customDate(someString);

 

 

bca321bca321

Hi,

 

I write down as a:

 

newReceipt.Due_Date_del__c = customDate(pDueDate);

 

But it's not working. My regex patter is correct. Now I want to insert this date to salesforce. How to call pDueDate  as an string value and pass it as a date type and insert it for newReceipt.Due_Date_del__c.

SuperfellSuperfell
again, how is it not working? did you write any unit tests for your customDate function, how do you know that works?