1

I have below code

${d}=    Get Current Date    result_format=%m/%d/%Y
log  ${d}

and the output is

06/14/2018

In my expecation i want

6/14/2018

Thanks

Sidara KEO
  • 1,693
  • 1
  • 14
  • 34

1 Answers1

0

Can you try

${d}=    Get Current Date    result_format=%#m/%d/%Y
log  ${d}

Use '#' in-front of month to get rid of zero. Reference link

Note that this is platform-dependent; for Unix (Linux/MacOS), you'll need to use a hyphen instead:

%Y/%-m/%-d

Plooftech
  • 1
  • 2