Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
I need to enter date through date time picker , but with restriction that time stamp should not be captured.If anyone have come across
such requirement,please let me know the solution.
What does it means that timestamp shouldn't be captured? ( Hour:Minute:Second? )
Yeah, basically when i select only date through date-time Picker widget , even than default time gets saved in my data table.Is there a way where only date is saved in the data table.
DateTime fields on TW always are Timestamp based ( milliseconds ) then always will have time information in it. Here you have some options:
For option 2 you can do it with an Expression widget with DateTime input from DateTime Picker and DateTime output, inside you can reset time parts with Javascript expression: (new Date(input.getFullYear(),input.getMonth(),input.getDate(),0,0,0,0))
Hope it helps.