In Robot Framework there is a standard library DateTime that can be used here. The keyword Convert Date
can be used to convert a standard date-time string into another format. The formatting format used by the python command strftime()
Documentation applies here as well.
In the below robot code the formatting is performed:
*** Settings ***
Library DateTime
*** Test Cases ***
TC
${date} Convert Date 2017-10-25 15:24:38 result_format=%d %b %Y %I:%M %p
Which results in the following output:
${date} = 25 Oct 2017 03:24 PM