Timestamp Selectbox 15 min intervals
Outputs a select box that has timestamps from 12AM-12PM in 15min increments.
Copy this code and paste it in your HTML
<?php
for ($i = 0; $i <= 1440; $i+=15) :
?>
<select>
<option value="<?php echo $date; ?>"><?php echo $date; ?></option>
</select>
<?php
endfor;
?>
Report this snippet
Comments
Subscribe to comments