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

Aug 19 2025

New Builder Panel

Elevate Your Stories with the New Table Build Experience in SAP Analytics Cloud Welcome back to our quarterly roundup of SAP Analytics Cloud (SAC)

Kate Mumma

Quarterly Release Cycle

Aug 19 2025

Support Data Point Comments in Microsoft Excel

Overview We have good news for users that are integrating SAP Analytics Cloud with Microsoft Excel. The data point comment feature is now supported

Crystal Vazquez

Quarterly Release Cycle

Aug 19 2025

New Designer Pane in Excel

Overview This quarterly release cycle introduces an upgraded designer panel in the Microsoft Excel add-in. The new panel offers a smoother and more efficient

Crystal Vazquez

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