cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
537
Views
0
Helpful
2
Replies

Get Tomorrow's Date

robcav86
Level 1
Level 1

I have tried many ways to get a date object with tomorrow's date.

 

My most recent attempt was to set a date variable with a Do command, dtTomorrow.setDate(D[now].getDate()+1) 

where the initial value of dtTomorrow = D[now]

 

It seems no matter what I do, it gives me March 13, 3919. Today is February 13, 2019. 

It gives me the correct date for today, with dtToday=D[now]

 

It seems like there are two posts here already on this, and I've tried both of them, but I must be missing something. 

2 Replies 2

Anthony Holloway
Cisco Employee
Cisco Employee
Are you referencing this post as one of the two you found?

https://community.cisco.com/t5/contact-center/how-to-get-tomorrows-date-in-uccx-script/m-p/1752966/highlight/true#M50889

According to that post, I think you would just this: Set dtTomorrow = new Date(dtToday.getTime() + 86400000L)

Can you confirm that this works for you?

It does not.

Still gives me March 14, 3919

 

 

I thought maybe it was a bad time on the server but D[now] works fine...

 

Untitled.png