Date Time Picker

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Date Time Picker Symbol

This Date Time Picker Symbol allows you to graphically choose a Date and Time. The symbol requires a
class tag to function properly. The selected datetime timestamp will be stored in a tag as well as each of
the parts of the time stamp for easy usage. The symbol supports MDY, DMY, and YMD formats as well as
custom separators.

The symbol in its default closed state:

The symbol in its default picking state:

Activate the picking state by clicking the


calendar. Exit the picking state by clicking the
calendar again.

The refresh button will reset the date and time


to system’s current date and time.

The ‘<’ and ‘>’ next to the month year display


will change the current month.

The symbol in its year picking state:

Enter the year picking state by clicking the


month year display. The ‘<<’ and ‘>>’ buttons
will change the year. Click the year to exit the
year picking state.

The symbol in its time picking state:

Enter the time picking state by clicking the clock


towards the right. The time can then be picked
through the combo boxes. Exit the time picking
state by clicking the clock again.

The symbol has DateFormat and Separator properties. It will default


to MDY and ‘/’. Setting DateFormat to 1 will switch it to DMY.
Setting DateFormat to 2 will switch it to YMD. Separator can be any
string, but note that more than one character may cause the
timestamp to not fit well in the field. Here are examples of DMY with ‘-‘ and YMD with ‘.’.
Setting up your InduSoft project for the DateTimePicker symbol
This symbol requires a class tag for control and to store data. Copy the DateTimePicker Symbol Class
Definition below, insert a new class into InduSoft, name it ‘DT’, and paste the definition in. Verify that all
the members were created with the correct datatype. Then create a tag called ‘DT’ in the Project
Tags>Datasheet View that is of the class type ‘DT’. When the DateTimePicker symbol is added to a
screen, no configuration will be required for it to function properly. Note that if a different tag name is
used, each of the symbol’s properties will need to be manually updated.

DateTimePicker Symbol Class Definition


Day Integer

Offset Integer

Month Integer

Year Integer

Date String

Time String

SetYear Boolean

Hour Integer

Minute Integer

Second Integer

SetTime Boolean

AMPM Boolean

SetDateTime Boolean

TimeStamp String

DateFormat Integer

Separator String

You might also like