fix: Handling datetime objects in Data Import Beta (#9656)
fix: Handling datetime objects in Data Import Beta (#9656)

* fix: Handling datetime objects in Data Import

Co-Authored-By: Shivam Mishra <e9a375478c195b3e87ad3542518ea73daeb3cffe@users.noreply.github.com>

* fix: Avoid calling parse_date_format if already datetime.

* fix: Changed type check to isinstance and syntactical improvements

* chore: use predefined datetime format

Signed-off-by: Chinmay D. Pai <ab3234b32bd9ecd2892f3eb0b557ab584a8ff0cf@gmail.com>

* chore: fix deepsource issues

Signed-off-by: Chinmay D. Pai <ab3234b32bd9ecd2892f3eb0b557ab584a8ff0cf@gmail.com>

Co-authored-by: Shivam Mishra <e9a375478c195b3e87ad3542518ea73daeb3cffe@users.noreply.github.com>
Co-authored-by: Suraj Shetty <c1fab1cf28e7dcca05cc07266aa459291053d3da@users.noreply.github.com>
Co-authored-by: Chinmay D. Pai <ab3234b32bd9ecd2892f3eb0b557ab584a8ff0cf@gmail.com>
frappe/frappe,adityahase/frappe,adityahase/frappe,adityahase/frappe,mhbu50/frappe,saurabh6790/frappe,yashodhank/frappe,yashodhank/frappe,yashodhank/frappe,almeidapaulopt/frappe,adityahase/frappe,mhbu50/frappe,saurabh6790/frappe,almeidapaulopt/frappe,StrellaGroup/frappe,mhbu50/frappe,mhbu50/frappe,almeidapaulopt/frappe,almeidapaulopt/frappe,saurabh6790/frappe,frappe/frappe,StrellaGroup/frappe,StrellaGroup/frappe,yashodhank/frappe,saurabh6790/frappe,frappe/frappe