Can the sublease end on a random date or it has to be EoM?

https://www.mieterverband.ch/dam/jcr...interaktiv.pdf has only option for the sublease to end on end of the month.

Is it ok if my lease end on 17th?

Just to mention, my main concern is address registration in the local office, in order to start permit B process. Not sure if they will complain if end date is not end of the month?

Your rental end date has nothing to do with your registration with the gemeinde (ie you could have an over lap of rental contracts by a month or whatever with no issues). As long as you have a new place to live starting when you register, that's all that matters.

Just to clarify, I am entering country for the first time. Your post sounds like it's ok that we put January 17 as our end date, so I will edit the form from OP to be able to specify that date (as it currently doesn't allow that option).

I don't quite get what you're saying, but it sounds like you are going to have a rental contract ending on the 17th Jan? That's quite unusual unless it's an AirBnB or similar. However, the authorities issuing permits don't care when your rental contract runs to, you have to pay for an address change when you move.

A time-limited rental contract can end on any day. However handover can be tricky on non-workdays, so perhaps have it end on a workday or agree on the procedure for handover before signing.

Anyway, pretty much anything goes as long as everybody involved is Ok with it.