I have to split a date time which I get from a software in the below format to separate variables (year,month,day,hour, min,sec)
19 Nov 2015 18:45:00.000
Use datetime.strptime(your_string, format)
datetime.strptime(your_string, format)
To contsruct the format string, consult the documentation: https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior
format
From there, you can easily get the year, month, etc. (also in the documentation)