How long does it take to learn how to swim?

Not as pro swimmer but just to be able to hang out in a pool for a while with others. Floating and such.

I'm scared a little bit of water, I also have NO ONE to go with to public pools. I do need to learn till the end of May, then me and the company I work in plans to go on a trip and there will be lots of activities, pool included.

Help me guys :(
How long does it take to learn how to swim?
Post Opinion