HPCC-12147 %a and %A options on std.date.tostring not returning


Fix date handling bug.

Add date2str test to regression suite.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>