A date may be a little small for encryption, but...there is an example here:
Encrypt and Decrypt Data with C#[
^]
It depend what you want to use the date for - it may be more sensible to use a hashing algorithm like SHA instead, because they cannot be reversed.