Depart from Mumbai Central on a direct train towards Somnath early in the morning to maximize your day. Book Ahmedabad-Somnath Express or similar for approximately 12-13 hours journey.
Head back to Dwarka railway station to board the late evening train back to Mumbai. The train journey takes approximately 25 hours so prepare accordingly.