updates to createonenter and newattributes functions for date