Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
8 subscribers
Views
2003 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
datevalue function takes a date as a text (or string) as input and returns outpu
senthilkumark
over 8 years ago
datevalue function takes a date as a text (or string) as input and returns output as Date object (if the input text is a valid date text)
input format dd/mm/yyyy - this format works perfect.
but if I give the input as dd-mm-yyyy (for ex: datevalue("9-6-2009") - this returns output as "6/9/2009" . Why the month and date are interchanged in the output ?
OriginalPostID-174659
OriginalPostID-174659
Discussion posts and replies are publicly visible
0
Shyam Bommakanti
Certified Lead Developer
over 8 years ago
wrap your text to your format first using text(<YOUR_VALUE>, "DD-MM-YYYY")
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
senthilkumark
over 8 years ago
this works . but I don't see a function that validates a date (given input as string) for any formats like mm.dd.yyyy
for example datevalue("3.4.2012") - returns 1/4/2035 which is incorrect.
datevalue("22-Aug-2012") - returns 8/22/2012 which is perfect but datevalue("32-Aug-2012") returns "5/6/1153" which is incorrect . I see there are some gaps needs to get addressed in Date and Time functions
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Shyam Bommakanti
Certified Lead Developer
over 8 years ago
That's one of the reasons date shouldn't be from a free form text but from a date picker.
Agreed, date validation expression OOB would make it easy for getting dates from other systems.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
senthilkumark
over 8 years ago
validation expression OOB ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel