added some temporary utility functions to mess with date mode