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
7 subscribers
Views
2860 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Date of birth changes based on the user's timezone
pieterk
A Score Level 1
over 8 years ago
Hi Guys
I need to save a person's date of birth to the appian business database. A date of birth should be independant of timezone, yet appian show the date of birth field with the timezone adjustement on the UI. How do i get around this issue where I just want to save and display the date regardless of the timezone my user is in?
OriginalPostID-261219
Discussion posts and replies are publicly visible
0
chandolum
A Score Level 1
over 8 years ago
Hi pieterk hope the below code will solves your problem
remveTimeZone
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Venu
over 8 years ago
@ pieterk, i believe your variable/CDT-field/rule-input which holds DOB is of type DateTime, that's why it shows in time zone format. if it is only Date type No issues with timezone. Or else you can convert it to todate()
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sparshs
over 8 years ago
a!dateField(
label: "DOB Field",
value: ri!DOBWithTimeZone,
saveInto: {
ri!DOBWithTimeZone,
a!save(
ri!DOB,
todate(
ri!DOBWithTimeZone
)
)
}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sparshs
over 8 years ago
@pieterk: ri!DOB is of type date and ri!DOBWithTimeZone is of type Date and Time.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel