Constructs a Date from a String. The format of the String depends on the local date format.
Date testDate = Date.parse('01/01/2022');
system.debug(testDate);
Output - 2022-01-01T00:00:00.000Z
Constructs a Date from a String. The format of the String depends on the local date format.
Date testDate = Date.parse('01/01/2022');
system.debug(testDate);
Output - 2022-01-01T00:00:00.000Z
Comments
Post a Comment