Sign InSign Up

Rocketbot Forum

Rocketbot Forum Logo Rocketbot Forum Logo

Rocketbot Forum Navigation

  • Academy Rocketbot
  • Tutorials
  • Documentación
Search
Ask A Question

Mobile menu

Close
  • Home
  • Popular
  • Categories
  • Tags
  • Questions
    • New Questions
    • Most voted
    • Most visited
    • Most Responded
  • Academy Rocketbot
  • Tutorials
  • Documentación
Home/ Questions/Q 4308
Next
In Process

Rocketbot Forum Latest Questions

Anonymous
  • 0
  • 0
Anonymous
Asked: August 18, 20212021-08-18T21:16:41+00:00 2021-08-18T21:16:41+00:00In: Ejecución

fecha actual quiero restarle 7 dias

  • 0
  • 0

de la fecha actual quiero restarle 7 dias lo hago por excel pero lo quiero con separaciones ejemplo 18/08/2021 ya que al momentos de extraerlo del excel me trae (18-08-2021) que expresión puedo usar.

3
  • 3 3 Answers
  • 5k Views
  • 0 Followers
  • 0
Share
  • Facebook

    3 Answers

    • Voted
    • Oldest
    • Recent
    1. Bender
      Bender
      2021-08-18T21:27:34+00:00Added an answer on August 18, 2021 at 9:27 pm

      Hola Anonymous,

      Puedes utilizar el módulo Fechas, comando Calculo entre fechas e indicar que reste los 7 días, ejemplo:

      Y luego la puedes formatear a tu gusto con el comando Formato Fechas

       

       

        • 1
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. luis88
      luis88
      2021-08-18T23:26:10+00:00Added an answer on August 18, 2021 at 11:26 pm

      perfecto.. mucho mejor.. ya que con expresion buscaba pero nunca me dio.
      todo los dias los mods sin la mejor opcion

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. Danilo Ortiz
      Danilo Ortiz
      2021-08-23T17:32:59+00:00Added an answer on August 23, 2021 at 5:32 pm

      yo realice este proceso haciendo un script de python con la libreria datatime y deltatime

       

       

      from datetime import datetime,timedelta

      meses = [«Desconocido»,
      «ENERO»,
      «FEBRERO»,
      «MARZO»,
      «ABRIL»,
      «MAYO»,
      «JUNIO»,
      «JULIO»,
      «AGOSTO»,
      «SEPTIEMBRE»,
      «OCTUBRE»,
      «NOVIEMBRE»,
      «DICIEMBRE»]

      now = (datetime.now())
      year = (now.year)
      vMesActual = (meses[now.month])

      Dias = 35
      vMesAnterior = now – timedelta(Dias)
      vMesAnterior = (meses[vMesAnterior.month])

      SetVar(‘vMesAnterior’,vMesAnterior)
      SetVar(‘vMesActual’,vMesActual)

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Leave an answer
    Cancel reply

    You must login to add an answer.


    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    Ask A Question

    Stats

    • Questions : 1k
    • Answers : 2k
    • Posts : 0
    • Comments : 0
    • Best Answers : 163
    • Users : 5k
    • Popular
    • Comments
    • Tags

    Related Questions

      • Answers: 4

      Google chrome bloquea la descarga de varios archivos debido a ...

      • Answer: 1

      Error Status

      • Answers: 0

      Restaurar Paginas Chrome

      • Answers: 2

      Robot enciclado, pero no ejecuta ningun comando dentro del ciclo

      • Answer: 1

      Error al iniciar rocketbot

    Users

    Explore

    • Home
    • Popular
    • Categories
    • Tags
    • Questions
      • New Questions
      • Most voted
      • Most visited
      • Most Responded

    Footer

    rocketbot white

    Rocketbot SpA | Todos los derechos reservados 2018 - 2020

    © 2020 Discy. All Rights Reserved
    With Love by 2code.

    en_US
    es_ES en_US

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.