I feel better about myself when I’m dressed nicely. KWIM? You know when you’re wearing an outfit (professional or formal) that looks good on you, you feel a spring in your step. You’re more likely to feel confident and positive. So, I think it can make a difference. But I don’t think it’s a definite way of remaining positive at work all the time. You could get into a conflict at work and that could bring you down.
Keep in mind that you’d be seen in pajamas when you leave work. You might have to make a stop at the grocery store or elsewhere. And if your comfortable with that, then go ahead.
If my work place was lax about attire, I’d wear something casual like jeans and a tee shirt. But that’s as far as I’d take it. I think that wearing my PJ’s to work would make me feel sleepy.