I'm developing a c# application that consists of Document Incoming System for my police station.
In this system, variable document's contents are been saved to an SQL database. I must give them a "Document Number".
I'm achieving all of these, but i want that every years last day such as 31.12.2014
, the numbers that have been given to a document like "2145" will turn to "1" at the the first day of year 01.01.2015
.
So, the records must be 2014/2145
. and the last days of years turns to 2015/1
.
How can I achieve this?