Notes
Returns true if the Datetime that called the method is the same as the specified Datetime in the local time zone of the context user.
Here are some examples:
datetime myDate = datetime.now();
datetime dueDate = datetime.newInstance(2008, 1, 30);
boolean dueNow = myDate.isSameDay(dueDate);
System.debug(dueNow);
Output: false
Video
Video does not exists.