Add DateTimeVar constructor.