<< Click to Display Table of Contents > 

SAMLight Manual > Entities (Objects) > Serial Number > Serial Number and Date Time

Serial Number and Date Time
Previous pageReturn to chapter overviewNext page

Serial numbers and Date Time objects can be combined by activating "Combine with DateTime" under Serial Number Advanced.

There are three different options:

- Serial Number -Datetime

- Datetime - Serial Number

- Combined DT/SN

Combined_SNDT

Figure 317: Combine with Date Time

- The first two options combine a serial number with a date time, with the serial number placed before or after the date time respectively. The serial number can be formatted as is shown under Serial Number Formats, the date time object under Date Time Format.

- Combined DT/SN lets you combine serial numbers and date time objects more freely under Date Time Advanced. Serial Number Formats are called with @ instead of % (Example: %06.0f --> @06.0f). It is possible to create objects with Date / serial number / Time, for example.

 

Please find more examples below:

1)The DT/SN format may look like this: @06.0f %y\%m\%d %H:%M

owhere @06.0f denotes the serial number format

oand %y\%m\%d %H:%M denotes the date time format

Format codes both for Date Time and Serial Number you will find under corresponding pages.

DateTime_Advanced_Select_Window

Figure 318: Date Time Advanced Format Code

 

2) How to create a barcode consisting of a variable text (serial number object) and a date time object (as <text> Month\Day\Hour):

1. A text object with the variable text, <name> it in the EntityInfo and set it as Nonmarkable Entity in the entity list.

2. A serial number and activate the date time format under Advanced (Combined DT/SN).

3. In the DateTime tab, go to Edit Format and enter <$name>%m\%d\%H. ($ is referencing the text entity, %m is month as decimal number 01-12, %d is day as decimal number 01-31 and %H is hour in 24 hour format 00-23)

4. In the serial number tab, click on barcode.

note

The entities are processed according to their place in the entity list. If a referenced object is supposed to update before marking, please make sure to place it above the entity that references it.

The barcode can be adjusted according to the needs. When the text in the barcode needs changing, simply change the text entity.

note

Combined customizable Serial Number and Date Time are only available beginning from the 3_7_5_20180824 SAMLight version.