I assume you've looked at
http://www.ns.nl/en/travellers/home &
http://9292.nl/en ?
Often that route at that time of day requires a night bus from Sloterdijk station.
Fortunately, first weekend in June, you can get a direct train every hour (quarter to the hour).
I'd still look harder for a hotel in town though.