It is a versatile greeting that can be used at any time of the day.
When saying "Sawasdee,” the palms of your hands should be pressed together at your chest in a prayer-like position called a "wai." The higher the hands are held to the head, the more respect is being conveyed.