As legal guardians, you are entitled to the exemption for your grandchild, but only one of you can claim it. Decide who should do this; it depends on who will save more in taxes for the family. You do not apportion the exemption between you.
The length of time that an asset is owned and that generally determines long- or short-term capital gain treatment.