Skip to main content
The String to Date tool supports a quite narrow functionality. It is used to turn custom date column into date/datetime data formats. Generally Less is relatively good at autodetecting date formats with the Columns, but sometimes date formats require manual parsing. That’s where the String to Date tool is useful.

Syntax

You tell Less how to parse your date by referring to certain formats. You can use the syntax below.
FormatDescription
%YFull year (e.g., 2001)
%mMonth number (01-12)
%dDay of month (01-31)
%BFull month name (e.g., July)
%bAbbreviated month (e.g., Jul)
%DShort date (MM/DD/YY)
%FISO date (YYYY-MM-DD)
%vVMS date (DD-Mon-YYYY)
FormatDescription
%HHour in 24h format (00-23)
%IHour in 12h format (01-12)
%MMinute (00-59)
%SSecond (00-60)
%pAM/PM marker
%R24-hour time (HH:MM)
%T24-hour time with seconds (HH:MM:SS)
FormatExample
%Y-%m-%d2001-07-08
%d/%m/%Y08/07/2001
%B %d, %YJuly 08, 2001
%Y-%m-%d %H:%M:%S2001-07-08 13:45:00
%d-%b-%Y %I:%M %p08-Jul-2001 01:45 PM

Configuration

The String to Date tool consists of three required input.
1

Column

Select the column with the date that you want to parse.
2

Column name

Input the name of the new column that will be created.
You can reference existing columns in the new column name if you want to overwrite the existing column.
3

Format

Input the format of your date column using the syntax options above. Check out the example below to see how.

Example: Parsing a date like 22 Aug 2025

Here we have a date column that is formatted as day, then short abbreviated month and then the year (22 Aug 2025). We want to parse this into a date/datetime data format.