When creating a dataset it can be useful to format timestamps in your preferred fashion. 


For example, show only days of the week, start the week on a Sunday, show only the month number etc. 


You can achieve this using the formula builder + string formatting when creating your dataset as shown below. 


The '%a' syntax will extract only the weekday information from the Timestamp.  

Ensure that you have selected the appropriate output type at the bottom. In this case it should be a string.






For all other types of formatting options, please see the syntax below.



Format SpecifierDescription
%aAbbreviated weekday name (Sun..Sat)
%bAbbreviated month name (Jan..Dec)
%cMonth in year, numeric (0..12)
%DDay of month as ordinal number (1st, 2nd, … 24th)
%dDay of month, padded to 2 digits (00..31)
%eDay of month (0..31)
%fMicroseconds, padded to 6 digits (000000..999999)
%HHour in 24-hour clock, padded to 2 digits (00..23)
%hHour in 12-hour clock, padded to 2 digits (01..12)
%IHour in 12-hour clock, padded to 2 digits (01..12)
%iMinutes, numeric (00..59)
%jDay of year, padded to 3 digits (001..366)
%kHour in 24-hour clock (0..23)
%lHour in 12-hour clock (1..12)
%MMonth name (January..December)
%mMonth in year, numeric, padded to 2 digits (00..12)
%pAM or PM
%rTime, 12-hour (hh:mm:ss followed by AM or PM)
%SSeconds, padded to 2 digits (00..59)
%sSeconds, padded to 2 digits (00..59)
%TTime, 24-hour (hh:mm:ss)
%UWeek number, sunday as first day of the week, first week of the year (01) is the one starting in this year, week 00 starts in last year (00..53)
%uWeek number, monday as first day of the week, first week of the year (01) is the one with at least 4 days in this year (00..53)
%VWeek number, sunday as first day of the week, first week of the year (01) is the one starting in this year, uses the week number of the last year, if the week started in last year (01..53)
%vWeek number, monday as first day of the week, first week of the year (01) is the one with at least 4 days in this year, uses the week number of the last year, if the week started in last year (01..53)
%WWeekday name (Sunday..Saturday)
%wDay of the week (0=Sunday..6=Saturday)
%Xweekyear, sunday as first day of the week, numeric, four digits; used with %V
%xweekyear, monday as first day of the week, numeric, four digits; used with %v
%YYear, numeric, four digits
%yYear, numeric, two digits
%%A literal ‘%’ character
%xx, for any ‘x’ not listed above