I encountered an issue with my serial number generation. Initially, I attempted to incorporate the date and numerical sequence into the serial number, but the problem lies in the incorrect arrangement of all the numbers. The current representation appears as follows:
2310041
2310042310042
2310042310042310000
What I aim for is the following pattern:
2310041
2310042
2310043
how can I fix it