Date / Time Validation and formating through script.
Posted on 2006-11-01
I have a script step that I'm stuck on. I have a dialog that will show 2 dates and 1 time for editing. once it's changed (or left the same) I would like to be able to format the data into a mm/dd/yy format rather than the default mm/dd/yyyy format (by the way, is there a way to change those defaults?)
I would also need to check the validity of these dates. I was looking at the IsValid but it looks like its just checking for the presence of data in the field and not if its correctly formated unless I'm using it wrong.
I will need to do some other checking as well but if I get through this one then I should be alright on my own again.