Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

147
Visualizações
Date Issue in Javascript date function

Team, I have requirement in my project i need to select date from calendar control and will ensure that it should not be future date it should be current date or lesser to it. Expression is as shown below. ORG_IND_EFF_FROM_DATE <= new Date() Issue: When i am selecting today's date(22/11/2021) from application it will assign to ORG_IND_EFF_FROM_DATE and will do comparison with new Date() but new date function returns in server 21/11/2021. till 10 am IST date will not change so it is saying future date you are selected so date is not valid though i selected current date . After 10 Am IST server date will change to 12 Am date will become 22/11/2021 till this application behaving wrongly, Could you please assist in this regards either in Java script or C#.Net

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can find you answer here Another option

This is a timezone issue it looks like. New Date() is pulling a different timezone. Your options are to change your ORG_IND_EFF_FROM_DATE to the new Date(), or new Date() to your ORG_IND_EFF_FROM_DATE timezone.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda