If you create xlsx from scratch, you cannot avoid creating a stylesheet. You minimally need a stylesheet and a cell element. The cell format element can refer to the built-in date format, in which case you can avoid the custom number format, but if you want the date format not to be built-in, you also need an element with a number format.
If you create xlsx from an xlsx template, you can reference an already defined cell format, but it can be very sensitive, since the links are based only on the index, so you are safer to look at a specific cell format to find one that matches the date format, which you want, as opposed to hard-coding the cell format index.
Samuel neff
source share