can we use "then and then"

Is that equal to “sometimes” if we use “then and then”

If we ask someone to sms us sometimes in your convenient time.
Can I post it as
"you can sms me then and then "

No, you have the wrong phrase. It is ‘now and then’, which does indeed mean ‘sometimes, occasionally’.

From time to time is another alternative.