Hello,
In above shows image i want to type from date and today date but last two three days bot run properly but now the date format has changed his typing like 0001
Thanks
Hello,
In above shows image i want to type from date and today date but last two three days bot run properly but now the date format has changed his typing like 0001
Thanks
the Format should be dd-MMM-yyyy
or for few UI’s hyphen is not needed then ddMMMyyyy
cheers
It’s not working I tried both with hyphen and without hyphen
Can you put in a writeline activity and check what is your output?
Also, check if the selector is getting valid? also check can you type the date manually in that date box?
Use Set Text activity also and try as Now.Tostring(“dd-MMM-yyyy”)
Hope this may help you
Thanks,
Srini
Out put is coming like this but i don’t how bcz sometime it’s worked nicely now it’s showing issued like this
Can you tell me one thing, is your in_FromDate is coming from any other input file? OR that is Now.Tostring?
Thanks,
Srini
@Srini84
System.date time
I see value of in_FromDate … is already wrong…that might be because you are not passing any value to the required argument…please check that
Depending on in_FromDate the value of ToString is decided
cheers
Check below
So if you have any value then check that you are passing that correctly
Hope this may help you
Thanks,
Srini
Use system.datetime.today
Actually I have to pass the 01-jun-2015
How should I passed this date bcz sometime bot is taking properly date and sometimes like this
Then directly pass the value only if it is constant…
The problem here is your datetime variable…if the date is constant as 01-Jan-2015 then pass it as a string as ways instead of datetime
cheers
But I have to continue change the variable type den it’s working without any hardcore value
Try :
if (DateTime.TryParseExact(yourdateString, “dd-MMM-yyyy”, CultureInfo.InvariantCulture, DateTimeStyles.None, out date))
{
string formattedDate = date.ToString(“dd-MMM-yyyy”, CultureInfo.InvariantCulture);
Console.WriteLine(formattedDate)
}
Note: date is a datetime type variable here and replace yourdateString with your actual string value
You have to clarify which is the value you sent earlier because if you send todays date there is no way you get 01-Jan-2015 as the output date
One thing you can do is use Cdate("01/01/2015")
as input date so that you need not change the datatypes
cheers
@Srini84 @supriya117 @Anil_G @BBarik_Dev
Hello,
Issued solve but when bot will run new date that it’s working properly den I have to change the variable of data type whenever I’m running the bot 2/3/4 time and I have to closed the UiPath and re-open den it will run
Thanks
Try these: