Generally, it's not recommended to take methylcobalamin (vitamin B12) at night.
According to research, vitamin B12 is important for energy metabolism, and taking it at night may interrupt your sleep. Therefore, it's generally suggested to take vitamin B12 in the morning or with a meal.