snippet for datecmd