- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Pass the field to the function along with the value (you could pass the initial field as a variable too so the function is reusable):
prince.dateConverter(form1.Page1.Date.rawValue, fieldName)
Then in the function use a variable to hold the field:
function dateConverter(curdate, oField)
At the end of the function write the value to the field variable:
oField.rawValue = fullDate;
There is an easier way to accomplish what you are doing using Patterns though. You've used text fields but if you use date fields you could just send the rawValue of the first date field to the second one with the Display Pattern of the second field set to date.long{}.
Views
Replies
0 Likes
Total Likes