Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+1
person also asked this
people also asked this
Replies
16 replies
Answers
4 answers
Subscribers
10 subscribers
Views
23249 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
adding a day to a date
erickp
over 8 years ago
What is the way to add a day to a date?
For example, when I do: datetime(year(today()), month(today()), day(today()) + 1, 13), it doesn't work for the case when today() = last day of the month. For example, yesterday was the last day of the month (the 31st) and we had an issue because 31 + 1 is 32 and that day doesn't exist. What is the way to add a day so that the system figures out by itself that August 31st + 1 is September 1st and not August 32nd?
OriginalPostID-232448
Discussion posts and replies are publicly visible
Top Replies
Colton Beck
over 8 years ago
+1
Have you tried today()+1? This should handle the case you describe.
Parents
+1
baghavathit
Certified Senior Developer
over 8 years ago
For finding the next day, you can use todate() function. like: todate("some date")+1. Eg: todate("8/31/2016")+1 will obviously return Sept 1, not august 32.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Reply
+1
baghavathit
Certified Senior Developer
over 8 years ago
For finding the next day, you can use todate() function. like: todate("some date")+1. Eg: todate("8/31/2016")+1 will obviously return Sept 1, not august 32.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Children
0
sauravk
over 5 years ago
in reply to
baghavathit
its not working in my case todatetime(today() + 3).
what is alternate of that
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel