任何围绕日期格式日期的网站都需要MMM进行转换,但这不起作用。当我这样做时...
${date_to_search_for}= Convert Date 2017-06-14 13:03:02.506610 date_format=%Y-%M-%d %H:%m:%S.%f result_format=%d %MMM %Y 00:00:00 exclude_millis=True
我明白了
14 06MM 2017 00:00:00
显然我在这个例子中寻找 Jun
最佳答案
%MMM
不是 datetime
中的有效指令。如果您想要月份的缩写名称,则需要使用 %b
。您的 result_format
应为:
result_format=%d %b %Y 00:00:00
关于RobotFramework:转换日期以获取月份名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44632197/