Hi @mark.jabay
- Use the below code to get the system date as per your desired format at runtime.
import java.text.SimpleDateFormat;
import java.util.Date;
Date date = new Date();
SimpleDateFormat myDateFormat = new SimpleDateFormat("EEE, dd MMM yyyy");
String dateText = myDateFormat.format(date);
System.out.println(dateText); // output: Wed, 12 Aug 2020
- Use WebUI.getText to capture the date from the application
'Get text of date'
result = WebUI.getText(findTestObject('date'))
- Use the Verify match to compare both the dates
'Use WebUI keyword'
WebUI.verifyMatch('expectedDate, 'actualDate', false)