Newbies KC_MEDS Posted June 3, 2010 Newbies Posted June 3, 2010 If I want the auto populate the slashes in a DOB field how would I use the Object Vailidation triggar script to help me convert those dates to an eight figure date?
Raybaudi Posted June 3, 2010 Posted June 3, 2010 Set Field [ DOB ; Date ( Middle ( DOB ; 1 ; 2 ) ; Middle ( DOB ; 3 ; 2 ) ; Middle ( DOB ; 5 ; 4 ) ) ] BTW: you have to trap to empty DOB and to its Length
Newbies KC_MEDS Posted June 3, 2010 Author Newbies Posted June 3, 2010 Sometimes the data placed in that field is 6 digit date or a 7 digit date, example 1112000 I don't know if the person means 01/11/2000 or 11/01/2000 so I thought if I build some kind of trigger script based on object vailidation if could tell me what the put in and then I can build a vailidations that indicates if script is correct...just not sure how to get there
LaRetta Posted June 3, 2010 Posted June 3, 2010 1112000 That is not a valid date. I suggest you use a REAL date field. You can set up (at the OS level) whether you want slashes, dashes etc and whether you want leading zeros. By using a text field to hold your 'dates', you are opening yourself to many problems ... "I don't know if the person means 01/11/2000 or 11/01/2000 " ... being just one of them.
Recommended Posts
This topic is 5560 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now