Added methods to build date time switches