#1
|
|||
|
|||
![]()
Hello,
I am trying to figure out how to write a rule for formatting a date. Date = 06/01/2012 and should return a value of "Friday, June 1". Any help would be greatly appreciated. Thank you, Sean
__________________
FusionPro VDP Creator 10.0.3 Acrobat 11.0.07 macOS 10.12.3 |
#2
|
|||
|
|||
![]()
I would like to see how to do this as well. It looks like the built in rules only allow for using the date as integers.
__________________
Don Reimer - JavaScript Novice MAC OS 10.14.6 Acrobat DC FP Creator 12.0.1 |
#3
|
||||
|
||||
![]()
Sean,
The 'getDay()' function returns the day of the week as an integer, with 0 being Sunday and 6 being Saturday. To get the day of the week you need to use an array to equate the number for the day of the week with the actual day. Then you need to apply the date format function to the field providing the date value. In the example below I just used 'Today()', but this could be 'Field("Event Date")' Quote:
__________________
Richard A. Lewis, Jr. Learning Development Manager | MarcomCentral® a Ricoh Company |
#4
|
||||
|
||||
![]()
This can also be done with a simple text rule as well:
Quote:
|
#5
|
||||
|
||||
![]()
Suuuurrrrreeee take the easy way.
__________________
Richard A. Lewis, Jr. Learning Development Manager | MarcomCentral® a Ricoh Company |
#6
|
|||
|
|||
![]()
Sorry for not replying sooner. Thank you guys for your help. All i can say is that this forum is super helpful and full of great information.
__________________
FusionPro VDP Creator 10.0.3 Acrobat 11.0.07 macOS 10.12.3 |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|