How to convert and show the date format (mm/dd/yyyy) of date/datetime property on change of a Calendar control from UI screen?
We have a requirement to convert and show the date format in mm/dd/yyyy after doing all the date validations using a Date/DateTime property. That too we need to show this format from a calendar control after tab out or change of Calendar control from a user input perspective. I know there is no direct OOTB feature for it. We would like to fulfill this requirement using server side and not Client side. As there are some forceful validations for Date/DateTime properties, we are unable to achieve this as per our requirement.
What we are thinking is like create a text property for each date field on UI to validate & show the value in mm/dd/yyyy. After successful conversion of all the fields on the screen, we do property-set to map these text properties to actual Date/datetime properties to store in DB. For these new text properties, we are storing them in BLOB and not extract them using BIX. These properties are just for UI level display purpose only.
I know this approach is not that good approach but I would like the experts to get any other thoughts to achieve this requirement using server side only. Appreciate your help in this regards.
Ravi Kumar Pisupati
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Keep up to date on this post and subscribe to comments
- String format date (DD.MM.YYYY) conversion to Date format (MM/DD/YYYY)
- Date Control in MM/dd/YYYY format
- Datetime control throwing "Not a valid date value" exception when the user enters the date in "MMddyyyy" format
- Date calendar control YYYY.MM.DD format
- Formatting GMT Date format to MM/DD/YYYY HH:MM:SS