Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 107007

Questions relating to Apex, the native programming language for the Force.com platform. Use it for general questions on syntax, errors, constructs, and rules of use. Most questions should include a code *excerpt* to help answerers understand specifically what has gone wrong or why you need help.

0 votes

This method provide as the number of days between startDate and endDate excluding sat/sun. C...

It is asking whether the given date (the updated startDate) is NOT a Saturday AND Sunday and only then incrementing the total. which is wrong it can only be one so instead of && you should use ||
Ali Siddiqui's user avatar
1 vote
Accepted

LWC Combobox not showing the dropdown list [wiring apex method]

options={fieldsInfo} onchange={handleChange} > </lightning-combobox> </template></template> JS Code: import { LightningElement,track, wire } from 'lwc'; import retrieveFields from '@salesforce/apex
Ali Siddiqui's user avatar