I have been searching for a solution to this for a while now. I can get the current date and time using with of these commands
string varDateTime = System.DateTime.Now.ToString(); string varDate = System.DateTime.Now.Date.ToString();Both return a datetime format such as - 07/05/2014 00:00:00 - This is no surprise given that that is what I used to get the data.
I have been able to find a way to strip this back to just the date - I need this value to be able to use it in some validation tests.
I have found many suggested C# solutions to what I am trying to do but non of them work within the contexts of Ranorex user code.
Does anyone out there have a solution please?
Many thanks
Ben