implement lecture date logic