Transform Numeric Values using st, nd, rd, th or Convert Numerals to Ordinal Form - Deluge
Please Use this sample Code
- This_Day_Date = zoho.currentdate.toString("dd");
- value1 = "th";
- if(This_Day_Date.right(1) ="1" && This_Day_Date != "11")
- {
- This_Day_Date = This_Day_Date+" "+"st";
- }
- else if ( This_Day_Date.right(1) = "2" && This_Day_Date != "12" )
- {
- This_Day_Date = This_Day_Date+" "+"nd";
- }
- else if (This_Day_Date.right(1) = "3" && This_Day_Date != "13")
- {
- This_Day_Date = This_Day_Date+" "+"nd";
- }
- else
- {
- This_Day_Date = This_Day_Date+" "+value1;
- }
- info This_Day_Date;
Thanks & Regards
Piyush Goyal
Zoho Developer || 3+ years Experience
+91-8619164837
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.