Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3486 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I'm having a lot of trouble figuring out how I should be formatting a Time for input into a field. How should I do this? I was able to input a date by taking a date with the format MM-DD-YYYY and putting it through date() and setting a date field to that, but I can not for the life of me get time to work. I'm working from a form, so I can format the initial input to the page however I'd like, and just need to know how I can get FileMaker to accept it for a time field.

Thanks all

Posted

I believe FileMaker wants the format HH:mm:ss

So assuming an hour (24 hour) and minute field on the form

$hour = $_REQUEST['hour'];
$minute = $_REQUEST['minute'];
$input = $hour .":".$minute.":00";

Dates are natively mm/dd/yyyy so just formatting the form input to that should work.

 

Posted

You should also be able to set your field using the Time(hh; mm; ss) command:

$enterTime = $foundRecord->setField(;yourTimeField', "Time(" . $hour . "; " . $minute . "; 00)";

This topic is 3486 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.