Ex: Today if some document comes to me , I need to iterate a string(document-id) with initial value of "000001" till the end of day. The 1st document will get "000001" as id and 2nd as "000002" and so on........till the end of day, if 10 documents had come...the final value of id must be "000010".
When next day starts and again if document comes on that day, it is treated as 1st document for that day and its id must start with "000001". just like a repetition of above scenario.
need logic for this requirement. Awaiting your response!