I have a field value update information box where it sometimes looks like this:
Date will always be in the dd/mm/yy format.
I need to create a condition to check if the date is the first part of the value and replace or reg expression to eliminate the date part each time someone updates this information so it look like this if they add information to the field value:
Here is my attempt that is not working:
Code:
(08/12/05) stuff here etc...
I need to create a condition to check if the date is the first part of the value and replace or reg expression to eliminate the date part each time someone updates this information so it look like this if they add information to the field value:
Code:
stuff here etc...MY ADDITION HERE
Here is my attempt that is not working:
Code:
<--- Check if date format (mm/dd/yy) is beginning part of form value , if it is then eliminate it --->
<cfif REFind("^\(\d{2}/\d{2}/\d{2}\)", myField) is 0>
<REReplaceNoCase(form.myfield,"^\(d{2}/\d{2}/\d{2}\)">
</cfif>