Use this expression to convert the date given in string data type to the date data type.
Convert string to date format (format) = output
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
Input Parameter Name | Description |
---|---|
date_string1 | Date in string data type. |
string_format | Format in which it has be converted. |