Question
persian date
Hi all,
Since coldfusion doesn't support Farsi/Persian dates, I tried to use the icu4j lib and installed it as instructed. I tried to run the attached code(sample from a cf article) and as expected, it gave me an output in Farsi/Persian, literally. I mean, the characters and numbers were in Persian. The thing that I don't get is the Now(), as used in this code, which is supposed to give a Persian date (year 1387), it still gives me the gregorian date(year 2008). Although the characters are in persian, the date is still in gregorian. i want it to output in persian as in year 1387 which is the current year right now in Persian calendar. Same also with the month and day. Am I missing something here? Any insights are really much appreciated. Thanks.
Since coldfusion doesn't support Farsi/Persian dates, I tried to use the icu4j lib and installed it as instructed. I tried to run the attached code(sample from a cf article) and as expected, it gave me an output in Farsi/Persian, literally. I mean, the characters and numbers were in Persian. The thing that I don't get is the Now(), as used in this code, which is supposed to give a Persian date (year 1387), it still gives me the gregorian date(year 2008). Although the characters are in persian, the date is still in gregorian. i want it to output in persian as in year 1387 which is the current year right now in Persian calendar. Same also with the month and day. Am I missing something here? Any insights are really much appreciated. Thanks.
