From iMacros
Jump to navigation Jump to search

Contains the current time and date. In order to format the time and date you can use the following format codes, which you need to append to the variable after a colon (see Examples):

Value iMacros 2021.0 Firefox Chrome iMacros Browser


Format code

The format codes are case sensitive. Format code can include spaces but make sure to use the <SP> character instead.

  • none
    Displays the combined system date and time in the sortable format defined standard (ISO 8601).
  • dd
    Displays the day as a 2-digit number (01 - 31)
  • mm
    Displays the month as a 2-digit number (01 - 12).
  • yy
    Displays the year as a 2-digit number (00 - 99).
  • yyyy
    Displays the year as a 4-digit number (100 - 9666).
  • hh
Displays the hour as a 2-digit number (00 - 23).
  • nn
    Displays the minute as a 2-digit number (00 - 59).
  • ss
    Displays the second as a 2-digit number (00 - 59).
  • Any other characters
    are just output as literals.

Firefox Chrome Note: iMacros for Firefox and iMacros for Chrome do not support !NOW without the formatting characters.


The current date and time.

Set By

[X] Internal

[ ] SET

Internal means that the iMacros program itself sets the value of the variable during program run. SET means that the user can set this value via the SET command inside a macro.


All following examples assume that it was the 25th May 1980, 04:35:00 in the morning when the command was executed:


results in 25051980_043500


results in 1980-05-25 04h 35min

Note, however, that the use of variables in iMacros always requires double curly brackets. Here's a complete sample macro making use of !NOW:

URL GOTO=http://www.amazon.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:site-search ATTR=ID:twotabsearchtextbox CONTENT="{{!NOW:yyyy/mm/dd_hhnn}} test"

See Also