Bedtime is when you went to bed at the end of this day. If it was after midnight, still enter it on this day, e.g. 00:30.