Yes a resignation can be accepted from retrospective date. Yes it is legal company can do same as your resignation was accepted on 10 but the date of resignation was taken 30th only you have not worked after that. Sir you have been working after september 30 anywhere it will be legal no double employment.