date -> formatted string in a labkey validation script? | jeckels | 2010-10-18 17:26 |
Status: Closed | ||
Hi Ben, Yes, this looks like a good approach. I tested it in a few interesting cases and it worked correctly. Your code uses the JavaScript Date class, which is preferable to anything that reaches out and specifically uses Java classes. It looks like there are some good standalone JavaScript date formatting libraries out there, like: http://blog.stevenlevithan.com/archives/date-time-format that might be worth including in your utility code. Of course, going forward it would be great to automatically have access to the relevant Ext libraries. Thanks, Josh |
||