fork download
  1. Date startDate = Date.newInstance(2024, 5, 1);Date endDate = Date.newInstance(2024, 5, 16);Integer daysDiff = startDate.daysBetween(endDate);System.debug(Days between: ‘ + daysDiff);
Success #stdin #stdout #stderr 0.01s 10032KB
stdin
Standard input is empty
stdout
Object: Date error: did not understand #startDate
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
Date class(Object)>>doesNotUnderstand: #startDate (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
Object: 2024 error: did not understand #,
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
SmallInteger(Object)>>doesNotUnderstand: #, (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:1: expected expression
./prog:1: Invalid character 0xe2
./prog:1: Invalid character 0x80
./prog:1: Invalid character 0x98
./prog:1: Invalid character 0xe2
./prog:1: Invalid character 0x80
./prog:1: Invalid character 0x98