Setter functions for beginning and ending decide wether it is a datetime object or a parseable timestamp string