+1 date from the current date in calendar

39 views
Skip to first unread message

Suryabhan Singh

unread,
Aug 8, 2022, 7:58:13 AM8/8/22
to robotframework-users
hey guys,
im trying to to handle +1 date from the current date but have no clue 

anyone please help!

Craig Despeaux

unread,
Aug 8, 2022, 10:58:36 AM8/8/22
to robotframework-users
Assuming this is Linux/Unix, have you looked at "date --date='tomorrrow' or date --date='+1 day'?

You can add +%D to get the date in MM/DD/YY format, but you can ask for other formats, as well.

Craig

Wentao Ma

unread,
Aug 15, 2022, 10:56:04 PM8/15/22
to robotframework-users
Library     DateTime

${today}=    Get Current Date    result_format=%Y-%m-%d
${5days}=    Add Time To Date    ${today}    5days    result_format=%Y-%m-%d
Reply all
Reply to author
Forward
0 new messages