I have tried to take date time input from the user but data type of date input is being set as type=\"text\"
following are the code snippets:
template:
The default widget for DateTimeField is a text field (DateTimeInput). So this is expected behavior.