Set the DateTime object when creating a text
Updated todo