The dclock program displays a digital LCD clock and can switch between time and date. See also the aclock sample that displays an analog clock.