3

It should be small dd aka dd-MM-YYYY Date dStart = System.today(); System.debug(DateTime.newInstance(dStart.year(), dstart.month(), dstart.day()).format('dd-MM-YYYY')); //13-11-2019 Format method follows SimpleDateFormat and according to it Small d means date and Caps D means day of the year


3

It is not possible out of the box. The standard workaround is to use a formula, then filter on that: WHERE Year_Range_Length__c >= 5 Please note that this behavior is covered in the Force.com SOQL and SOSL Reference documentation on fieldExpresion Syntax (emphasis mine): fieldName comparisonOperator value ... Syntax value ...


2

You got the month and day backwards. Try System.Debug(DateTime.valueOf('2019-11-14 10:55:46 PM')); SPECS Notice it is counting Month 14 of 2019 which puts you in February of 2020. This might be counter intuitive and you might have expected an error saying month can't be greater than 12 but because of how parse() and valueOf() work, it just calculates ...


1

You get the data from getRecord wire service in below format: { "apiName": "Account", "childRelationships": { }, "fields": { "Name": { "displayValue": null, "value": "University of Boston" }, "POC_Datetime__c": { "displayValue": "8/7/2019 8:02 PM", "value": "2019-08-08T03:02:37.000Z" }, "Phone": { "...


Only top voted, non community-wiki answers of a minimum length are eligible