You can’t use Apple’s text expansion to do this, but you can use Services, and assign a service that inserts the date or time with a key combination. I did this prior to getting TextExpander (and before Alfred would do it). Now the problem is getting a service to insert the data or time. But it is available for free. Go to the App Store and search for “WordService”.