If the date format in exported data in MM/DD/YYYY , It will throw an error.
I tried to add them in custom key of dict, but did not work.
So I changed this
split_formats = {
'12hr': '\d{1,2}/\d{1,2}/\d{2,4},\s\d{1,2}:\d{2}\s[APap][mM]\s-\s',
'24hr': '\d{1,2}/\d{1,2}/\d{2,4},\s\d{1,2}:\d{2}\s-\s',
'custom':''
}
datetime_formats = {
'12hr': '%d/%m/%Y, %I:%M %p - ',
'24hr': '%d/%m/%Y, %H:%M - ',
'custom': ''
}
to
split_formats = {
'12hr': '\d{1,2}/\d{1,2}/\d{2,4},\s\d{1,2}:\d{2}\s[APap][mM]\s-\s',
'24hr': '\d{1,2}/\d{1,2}/\d{2,4},\s\d{1,2}:\d{2}\s-\s',
'month_12hr': '\d{1,2}/\d{1,2}/\d{2,4},\s\d{1,2}:\d{2}\s[APap][mM]\s-\s',
'month_24hr': '\d{1,2}/\d{1,2}/\d{2,4},\s\d{1,2}:\d{2}\s-\s'
}
datetime_formats = {
'12hr': '%d/%m/%Y, %I:%M %p - ',
'24hr': '%d/%m/%Y, %H:%M - ',
'month_12hr': '%m/%d/%Y, %I:%M %p - ',
'month_24hr': '%m/%d/%Y, %H:%M - ',
}
So that users with MM/DD/YYYY or MM/DD/YY people can use them.