$time extract

Allows you to extract information from dates and times, such as the year, month, day, and so on.


Example

Running this code will extract the day of the week for your current day. As shown in the UBot browser, the current day of the week is "Wednesday".

load html($plugin function("Time and Date Automation.dll", "$time extract", $date, "UBOT (MM/dd/yyyy HH:mm:ss)", "Day Of Week"))

Running this code will extract the day of the year for your current day. As shown in the UBot browser, the current day of the year is day "68".

load html($plugin function("Time and Date Automation.dll", "$time extract", $date, "UBOT (MM/dd/yyyy HH:mm:ss)", "Day Of Year"))

Running this code will extract the current year for your current day. As shown in the UBot browser, the current year is year "2022".

load html($plugin function("Time and Date Automation.dll", "$time extract", $date, "UBOT (MM/dd/yyyy HH:mm:ss)", "Year"))

Was this helpful?

Previous Article

$time difference