HPCC-9583 Rework the selftests in the std library

Move the selftests into the Std.Date library file.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>