Activity Forums Salesforce® Discussions What does format() function does in Salesforce?

  • Deepak

    Member
    July 9, 2020 at 1:03 pm

    Use FORMAT with the SELECT clause to apply localized formatting to standard and custom number, date, time, and currency fields. When the FORMAT function is applied these fields reflect the appropriate format for the given user locale.

  • Marziya

    Member
    July 9, 2020 at 1:17 pm

    private String formatDate(Date dateIn){
    DateTime dateTimeScheduled = DateTime.newInstance(dateIn,Time.newInstance(0,0,0,0));
    return dateTimeScheduled.format('MMMM d, yyyy');
    }

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos