2

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;
        }

3 replies

null
    • fxbaggio
    • 1 yr ago
    • Reported - view

    Hi Steve, I remember the DateTimePicker as a Tool up to V20. Where can I find the DateTimePicker on V22.1.2? 

      • wise_james
      • 1 yr ago
      • Reported - view

      fxbaggio I might misunderstand the question but I would say you can find it as a control option for applications in Axiom through a web browser. 

    • smason
    • 1 yr ago
    • Reported - view

    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.