Solved

Date / Time Validation and formating through script.

Posted on 2006-11-01
1
208 Views
Last Modified: 2010-04-27
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.

Thanks!
0
Comment
Question by:Cruizectrl
1 Comment
 
LVL 6

Accepted Solution

by:
JoJohn2004 earned 125 total points
Comment Utility
Under the format menu there is a date option. Using this you can format the date in any number of ways. I believe that you can change the default by not selecting any field and then change the date format to the one you want. All subsequent date fields added to the layout should be in the desired format.

If you format the field as date it will check to be sure that it is a valid date before it will accept the change. if this happening during a script step you want to include the "Set error Capture" script step to On. Display a message if an error happens then return the user to the same layout to correct the mistake.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now