04. Convert string to date format

Use this expression to convert the date given in string data type to the date data type.

Syntax

Convert string to date format (format) = output

Sample

1. Convert string to date format (‘13-10-2014’,‘%d-%m-%Y) = 13-10-2014 (as date data type)

2. Current Date and time string ((‘2013/10/05’, ‘%Y-%d-%m’) = 2013-10-05

Parameter Details

Input Parameter Name Description
date_string1 Date in string data type.
string_format Format in which it has be converted.
Did you find what you were looking for?

Automation Analytics and AI in a box

Contact Us

HfS Hot Vendor

Option3's Automation capabilities featured in HfS Research's Hot Vendors List for Q3, 2018

Access your copy here