A method to count numbers

Hello,

Is there a way to automatically fill in numbers dynamically every day, not just for dates and times but for all numbers involved?
For example, if today’s date is automatically entered into a blank field, the next day it would be filled with the date for that day.

For this moment, I use “type into” or “Keyboard Shortcut” to fill in the blank.

@PARK_Bin

Welcome to the community

Where you want to do that?

And is it in some specific location daily?

Or as a series?

Can you show some example

Now gives the current date …we can use adddays(1) to go to next day and aimilarly other operations are also available

If on excel we can just write one date and use a formula to auto fill as well

Cheers

I highly recommend doing the free training at academy.uipath.com

What does this mean? What are “all numbers involved”?

Today’s date is just Now.ToString(“MM/dd/yyyy hh:mm tt”) and you can modify that format to what you want. For example “MM/dd/yyyy” will give you just the date, “hh:mm tt” will give you just the time with am/pm. “HH:mm” will give you the time in 24-hour format with no am/pm. Many different ways you can do the format:

Hi @PARK_Bin

You can use the below expression in the Type into activity to enter the Today’s date,

DateTime.Now.toString(MMddyyyy)     - Output of this expression is 08052024

If you want to consider the Time also then try the below one,

DateTime.Now.toString(MM/dd/yyyy hh:mm:ss)     - Output of this expression is 08/05/2024 09:58:00    

use the expression based on your requirement.

Hope it helps!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.