At the weekend I like to spend my time to cook.
There are two problems here. First of all you are unlikely to spend anybody else’s time other than your own, so ‘my’ is redundant. Secondly, ‘spend time’ is much more commonly followed by _ing (gerund):
You can also use a preposition phrase to show where you spend time:
And you can even combine these two examples:
Now spend some time practicing ‘spend time’!