Adding Days of the Week


good morning all,

 

i creating timesheet. in timesheet, have date field named "ppsd1". have made table days in pay period. in table, there fields days of week. have inserted below code, takes date enter "ppsd1" , calculates day of week, inserting field named "day1".

 

num2date(date2num(ppsd1.formattedvalue

, "mm/dd/yyyy"), "eeee")

 

what need do, have calculate remaining days of week automatically based on first entry.

 

for example, if enter 06/01/2010 "ppsd1", returns "tuesday" "day1". need put "wednesday" "day2"; "thursday" "day3", etc.

 

any , appreciated.

 

gene-o

hi,

 

here sample uses pattern date{eeee} show day of week. https://acrobat.com/#d=9y7jktrm3uwmtnpoifudsg

 

formcalc best working dates, see num2date , date2num functions used in calculate event.

 

hope helps,

 

niall



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support