fork download
  1. Date today = Date.today(); // Gets today's date
  2. Integer currentMonth = today.month(); // Extracts the current month
  3. System.debug('Current Month: ' + currentMonth); // Displays the current month
  4.  
Success #stdin #stdout #stderr 0.02s 9440KB
stdin
Standard input is empty
stdout
Object: Date error: did not understand #associationAt:ifAbsent:
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
Date class(Object)>>doesNotUnderstand: #associationAt:ifAbsent: (SysExcept.st:1448)
DeferredVariableBinding>>resolvePathFrom: (DeferBinding.st:115)
DeferredVariableBinding>>value (DeferBinding.st:69)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:1: expected expression
./prog:4: Unterminated string, attempting recovery