Comments (for Instructors) Visible in the Library Browser: PG Code Snippet
|PG problem file||Explanation|
$date = $formattedOpenDate; # Built-in WeBWorK variable $date =~s/ .*//; # Prune off the detailed starting time @parts = split('/',$date); # Break apart month, day and year which are separated by / $month = $parts; $day = $parts; $year = $parts; BEGIN_TEXT For the given problem set, $PAR $PAR the Open Date Month is $month $PAR the Open Date Day is $day $PAR the Open Date Year is $year END_TEXT
Use this code fragment to obtain variables dependent upon the open month, day and/or year.