Page 1 of 1

Records Began Date

Posted: Sun 15 Jan 2023 8:41 pm
by HansR
I am currently looking into some functionality around the Records Began Date.

When changing that date we have to obey the format exactly so it says, this means that for a random day I have to find out first on what day that is (e.g. saturday etc...). That is a nuisance. Is it possible to give it such nice calendar entry like seen on other parts of CMX? That would make it much nicer to deal with even if it is not used very much of course.

Re: Records Began Date

Posted: Mon 16 Jan 2023 1:35 pm
by mcrossley
Possible but not without issues. The date is in .Net locale format, so that format would have to be passed via hidden field so that some JavaScript could pick it up and convert it to JS format and then configure the date picker, the same for the locale.

Maybe a better approach would be to send the date in ISO format, use a date picker in the browser locale to return an ISO date, then convert back to .Net locale string.

TBH I'd rather drop the locale string altogether and switch to an ISO date. For a little while now I changed MX to use a date object internally for the start date. I think I'll deprecate the current date string soon and add a new ISO date entry to the ini file. The current entry would become a read-only value for conversion from C1 if the new entry were not present, once read it would be deleted and the new field used exclusively.

Re: Records Began Date

Posted: Mon 16 Jan 2023 6:29 pm
by HansR
Sounds OK to me if selecting a date becomes easier