Data dia anterior

Bom dia como posso trazer a data do dia anterior?

Data_hoje = Right(“0”&Month(dtnow), 2) &"-" &Right(“0”&Day(dtnow), 2) &"-" &Year(dtnow)

Data_Onten = Right(“0”&Month(dtnow), 2) &"-" &Right(“0”&Day(dtnow), 2) &"-" &Year(dtnow)

Obrigado.

Elipse Software created this space aiming to stimulate the exchange of information among users of our products. We reserve the right to not respond through this channel. If you want immediate support, please contact us through the e-mail suporte@elipse.com.br or through our phone numbers (+55 11) 3061-2828 / (+55 21) 2430-5912 / (+55 31) 4062-5824 / (+55 41) 4062-5824 / (+55 51) 3346-4699.

Bom dia, amigo, você pode usar a função DateAdd do VBScript.
Por exemplo:

dim dtNow
dtNow = Now()
Value = DateAdd(“d”, -1, dtNow)

1 Like

Muito Obrigado funcionou perfeitamente.

1 Like

Boa tarde alguém pode me ajuda tô começando a pouco tempo no e3 presciso saber como faço para aciona a tag demo com simulador modbus