 Linguistically , " have a nice day " is a command in that the subject , the pronoun you , is intimated . It could be regarded as an exhortation to achieve an outcome that the recipient has no power to influence . However , it is also possible to interpret the phrase as a contraction of " I hope that you have a nice day " . 
