from two triangles to a square.

Is it possible to convert to triangle faces to be one square face?

Delete the Edge between them and Fill the space.

Select the faces you want to join and press Shift-J.

If the triangles are coplanar, share an edge and the normals point in the same direction, alt-J while in edit mode will join them.

In recent blender versions, selecting them and hitting F also works.