Ayuda con problema de calculo - Forum

Forum Navigation
You need to log in to create posts and topics.

Ayuda con problema de calculo

@luishp

Gente por favor a ver si alguien me puede dar una mano mis conocimientos no me dan para poder resolver esto...
necesito poder ingresar en una variable una fecha de inicio y a partir de esa fecha calcular una x cantidad de dias
excluyendo los dias domingos y tener por resultado la fecha de finalizacion.

Algun iluminado?

Agradezco infinitamente de corazon.

 

@vadim

People, please see if someone can give me a hand, my knowledge is not enough to be able to solve this...
I need to be able to enter a start date into a variable and from that date calculate an x number of days
excluding Sundays and resulting in the end date.

Anyone enlightened?

I thank you infinitely from the bottom of my heart.

 

 

@joferar333

take a look at the uploaded pub; note that ...

- the Text Entry boxes do minimal validation (just that everything is numeric)
- you may have to change the value of the variable [SundayText] if your windows is configured for a non-English setting
- all the comments beginning with ...SetVar "log" are just to assist in testing; uncomment them if you need to debugg any part of the logic

Uploaded files:
  • You need to login to have access to uploads.

@gaev

Thanks for your help.

Bad i need result diferent....

see this picture

 

 

If possible?

Thank again.

 

@joferar333

I need to be able to enter a start date into a variable and from that date calculate an x number of days

In your response you state that you need the input/output dates in format [dateshort] ... I am not sure what you mean by that ... VisualNEOWin has a Global Variable called [DateShort] (in english), but it is only for reading today's date.

As date formats can differ from country to country, please provide examples of your format for input of dates (including how single digit months and days are entered) ... and the desired output (result) if different from input format.

NeoDates plugin does the job

https://aplicaciones.xp3.biz/neobook/misc.html

 

@gaev

Please see this pub...

 

Uploaded files:
  • You need to login to have access to uploads.

@daviddeargentina

Gracias por tu respuesta pero la verdad las fotos que veo no me dicen nada, realmente no se cual es la funcion del plugin en realidad y si se ajusta a lo que necesito hacer...

Por favor si me respondes hazlo en español me cuenta el ingles

Hola @roxana6218

El plugin NeoDates hace varias cosas, a saber:

la función ae_Dates_DateADD permite agregar (o restar) días a una fecha dada. El resultado es una fecha

la función ae_Dates_DateDIFF permite restar dos fechas y obtener la cantidad de días entre la primera y la segunda. El resultado es un número

la función ae_Dates_GetDates permite obtener las siguientes fechas de un archivo dado que son: (devuelve fechas)

  • Fecha de creación
  • Fecha de última edición
  • Fecha de último acceso

la función ae_Dates_SetDate permite modificar la fecha del sistema

la función ae_Dates_GetNISTDate permite obtener la fecha y hora real que se obtiente desde el sitio nist.gov. El resultado es una fecha mas compleja, que puede ser particionada con StrParse. Hay mucha información acerca de los valores adicionales que devuelve la función. Es facil de googlear.

Esto es especialmente util para evitar que te intenten adulterar la fecha de la computadora, en especial cuando tienes programas que tienen fecha de vencimiento.

Esto resuelve definitivamente el problema, porque no pueden evitar que te alteren la fecha y hora que viene dado de un organismo oficial de Estados Unidos.

El plugin es shareware.
Saludos desde Buenos Aires
Uploaded files:
  • You need to login to have access to uploads.

@joferar333

I have modified my pub (new first page; old page is now second page) to reflect what you indicated in your pub to me.

Note that ...

a) when I use [DateShort] on my machine, it displays as 2024-04-16; you may see a different format depending on how your windows is configured. In any case, the numeric value of this date should be the same (i.e. 45398); I have displayed it for your debugging.

b) the same holds for the format of the end date

c) I am not sure what d/mm/yyy is (did you mean yy or yyyy) ?

If you are not seeing the dates in the desired format, let me know if you want to see them in dd/mm/yy or dd/mm/yyyy format.

BTW, who is @roxana6218 ?

Uploaded files:
  • You need to login to have access to uploads.
Vadim and alangonzalez91 have reacted to this post.
Vadimalangonzalez91

@gaev

THANKS!!!!  found Ok and is just i need to my proyect

Best Regard MASTER!!!!

 

@daviddeargentina  Una vez mas agradecida por tu tiempo y tu respuesta.
Ya he solucionado el problema me han enviado un pub exactamente con lo que yo necesitaba.

Igual estube leyendo pero el plug que me comentas no hacia lo que yo buscaba, que era ingresar una fecha de inicio...
luego ingresar una cantidad de dias para que incremente la fecha pero excluyendo los dias domingos y me diera la fecha final incrementada...

Ya lo tengo Mil gracias

Saludos