Hey -
I am working on a semi-monthly timesheet form where the user will enter the period ending date. I'd like for the day of the month fields (1st, 2nd, etc) and the day of the week fields (M, T, W, etc) to auto-populate if possible. I am open to having the user enter both the period start date and period end date if necessary. I'm using Livecycle and most of the posts I've read regarding this are counting the number of days in between. Any suggestions you have would be great - Thanks!
LiveCycle Designer has a number of functions for manipulating dates. LiveCycle Designer use the number of days from a fixed Epoch date for manipulation and creating various date strings.
The 'Date()' function returns the number of days from the Epoch Date. You can than perform addition and subtraction with this value to move forward or backward a given number of days. With the value for number of days from the Epoch Date, one can get or create various strings that display information about date for that number by using the 'Num2Date()' function and passing the number of days from the Epoch Date and a specific format string.
The following code can be used with a button to display information about today and information about the date in 3 days.
George Kaiser