I'm with you on this. I found I'd gotten into this terrible habit. I'd wake up in the morning, wonder what time it is, grab the phone to check, think oh, I'll just see what my friends are up to, and suddenly it's almost lunchtime and I'm still in my pajamas.
My solution so far: I got a cheap bedside alarm clock. And I stopped bringing my phone into the bedroom.