2
Forum / Axiom Showcase
Axiom Script - Finding the Value of a Tag at a Given Time Using the DateTimePicker
The following code snippet can be used to update the AggregateStartTime of a ValueBox using the OnDateTimeChange function of the DateTimePicker.
public void DateTimePicker1_OnDateTimeChange(object sender, DateTime dateTime)
{
string startTime = dateTime.ToString("o");
ValueBox1.AggregateStartTime = startTime;
}
Like
Follow
2
3replies
-
The DateTime Picker is only available to Admin users. There would be an asterisk (*) next to your username in the top-right corner if you are an admin user as indicated in James Wise screenshot. To be an admin user, you must be included on the ALLOW list within the Canary Admin>Admin tile>Access tab.