#11
|
|||
|
|||
![]()
Thank you! I ended up with this as my final rule. It displays the date in English or Spanish based on a language column in the data as well as a predetermined date that is also in the data:
function SpanishDate(myDate) { var months = ['enero','febrero','marzo','abril','mayo','junio',' julio','agosto','septiembre','octubre','noviembre' ,'diciembre']; var letterdate = Field("letter date") var month = months[myDate.getMonth()]; return myDate.getDate() + " de " + month + " " + myDate.getFullYear(); } return (Field("language") == "S") ? SpanishDate(DateFromString(Field("letter date"))) : FormatDate(DateFromString(Field("letter date")), 'lm d, yyyy'); |
![]() |
Tags |
date, format, spanish |
Thread Tools | Search this Thread |
Display Modes | |
|
|