Need to Applying format on Date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 12:24 PM
Hi Community, Good Day!!!
I am working on a code that will display date.
I want to apply st with 1, nd with 2, rd with 3 and th with all others. I am using the below code:
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 08:59 PM
any reason why to have 2 fields to hold same information?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 05:26 AM
Hi @Ankur Bawiskar, this script is showing month's name and i want to show date with st and nd etc.
this is the requirement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 05:34 AM
I don't think just to show date in another format there has to be a separate field.
It unnecessarily increases the overhead of maintaining custom fields.
Please discuss this with your customer and your technical lead.
This requirement should have been pushed by the architect itself.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader