Robotic Process Automation (RPA)

 View Only
  • 1.  day of the week

    Posted 23 days ago

    Hi, from a date you can get the day, month, year, hour, but not the day of the week, is there any way to get it?

    Regards



    ------------------------------
    Miguel Angel Sanchez Sandoval
    ------------------------------


  • 2.  RE: day of the week

    Posted 22 days ago
    Edited by Alexander Krastev 22 days ago

    Hi Miguel,

    I use follow code to extract the day of the week:

    defVar --name dToday --type DateTime
    defVar --name sPreviousWorkingDayName --type String
    defVar --name sToday --type String
    defVar --name sDayName --type String
    getCurrentDateAndTime --localorutc "LocalTime" dToday=value
    dateTimeToText --culture "en-US" --date "${dToday}" --standardformat "LongDate" sToday=value
    getRegex --text "${sToday}" --regexPattern "(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday)" --regexOptions "0" sDayName=value
    logMessage --message "${sDayName}" --type "Info"



    ------------------------------
    [Alexander] [Krastev]
    [RPA developer]

    ------------------------------



  • 3.  RE: day of the week

    Posted 22 days ago

    Hi Alexander, thanks for the answer, I implement it.

    Regards



    ------------------------------
    Miguel Angel Sanchez Sandoval
    ------------------------------