Duplicate Snippet
Embed Snippet on Your Site
Create a Smart Tag for the Current Time
This snippet will create a new Smart Tag for you that you can use anywhere in the form builder. Once you've added the snippet, just add the {current_time} to any Default Value to have the current time entered as a value in your forms.
This snippet is set up with date_default_timezone_set( 'US/Eastern' ); in the snippet. Please remember to change this timezone to match yours before saving the snippet.
Code Preview
php
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments