def datetime_format_to_js_date_format(format):
 format = format.split()[0]
 return datetime_format_to_js_datetime_format(format)

def datetime_format_to_js_date_format ( format ) : format = format . split ( ) [ 0 ] return datetime_format_to_js_datetime_format ( format )
convert a python datetime format to a date format suitable for use with the js date picker we use .