giametti Posted January 12, 2014 Posted January 12, 2014 I'm having a problem with date fields sometimes being passed in a parameter in a strange non-date format. It may appear in the field as 1/11/14, but is passed in the parameter as 11.01.2014. Data in this format can't be put into a date field in a script, and GetAsDate returns a question mark. I can't figure out what's going on. This glitch is somewhat inconsistent. Jim
comment Posted January 12, 2014 Posted January 12, 2014 The way date appears in a field is not necessarily the way it is stored. Moreover, "1/11/14" is not a valid date, but "11.01.2014" could be - depending on the date format being used by the file. You should start by examining what's stored in the source date field: in Layout mode, format the field to display the date "As entered" and examine your real data. Next, enter Find mode and search for any invalid date entries (use a ? as the criteria). Also check what is the file's date format in use, for example by clicking into a date field (set to display "As entered") and inserting the current date from the Insert menu.
Recommended Posts
This topic is 4215 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