Period like pains

kay

How long does it take from having slight period pains to going into labour?

Or is it just the baby putting pressure on my stomach? I'm nearly 37 weeks and having slight period like pains but they are not timeable as it can go from constant for hours then nothing. It's been like it for a day