New Date/Time Functions in Story Calculations

By Eric Whicker
05/20/2025

Table of Contents

Overview

SAC Story calculations now supports additional date/time functions. TOTIME() converts a DateTime  inout to a Time output. TODATE() converts a date string in a Date format. ISOWEEK returns the ISO year and week for a specified data. WEEK returns the week number for a specified date.

TOTIME converts a string to a time object, with the string and date format as inputs. In the given example, 20:39:45 is converted to 8:39:45 PM.

TODATE converts a string or a datetime to a time object. If the data is a datetime or timestamp, no format is needed. If the data is a string, such as 2014/09/2015, then a format is needed in the input.

ISOWEEK returns the ISO year and week for a date/string. An input of 01-01-2017 gives a return of 2016-W52.

WEEK returns the week as a number, from a given date. The date 2012-03-23 returns the week number 12.

Video Overview

Related Posts

Quarterly Release Cycle

May 20 2025

Smart Insights Available in Optimized Design Experience

Introduction The anticipated Smart Insight has been added to the Optimized Design Experience in the quarterly enhancements for QRC2 2025. This was previously available

Nesha Holmes

Quarterly Release Cycle

May 20 2025

Support of Story Filters with Linked Dimensions

Overview Data Analyzer now carries over the story filters with linked dimensions when selecting Analyzer on a widget within the story. This reduces time

Nesha Holmes

Quarterly Release Cycle

May 20 2025

Creation of a Performance Report in Microsoft Excel

Overview Starting with SAC QRC2 2025, users can enable a performance report within an Excel workbook. This allows users to track performance issues for

Nesha Holmes

Contact Us

Reach out if you have any questions or to see how we can create a custom training solution for your organization!

Contact Form Pop-Up - General Use

Custom Training Solution

Fill out and submit the form below, and we’ll reach out to you to discuss how we can work toward achieving your training goals in a way that works best for you and your team.

Contact Form - Custom Training