Stephen - mainwindow date stuff