Notes
Returns a Date that contains the value of the specified String.
Here are some examples:
String stringDateTime = '2023-12-05 15:30:45';
DateTime myDateTime = DateTime.valueof(stringDateTime);
System.debug(myDateTime);
Output: 2023-12-05 23:30:45
Video
Video does not exists.