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