add convenience function and support new date picker