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

Dec 1 2025

Data Analyzer – Export to Microsoft Excel Update: Adding a Shortcut Link

Overview The Microsoft Excel export functionality in the Data Analyzer now provides the ability to include a shortcut link. The link captures the story

Crystal Vazquez

Quarterly Release Cycle

Dec 1 2025

Add a Hyperlink to Button Widget

Overview Now story designers have the ability of adding a hyperlink to the button widget. Adding this new option is very easy and it

Crystal Vazquez

Quarterly Release Cycle

Dec 1 2025

Data Actions – Sort Parameters in the Starter

Overview When working with Data Actions in the Data Action Designer, you can now sort parameters to customize the order in which they appear

Arthur Phung

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