was thinking of formatting it like this
TYYYYMMDDNNNN (2 character + 12 digits)
Where
T is a character (TR or SL) YYYY is the year (2018) MM is the month (03) DD is the day (30) N is a sequential number (0001, 0002, 0003, etc.)
I need auto increment N after getting the last data from the MySQL database.
Such as
20180330-0001, 20180330-0002, 20180330-0003.
20180331-0001, 20180331-0002.
20180401-0001, 20180401-0002, 20180401-0003 etc.
Can someone help me do this?