How to get current date and time?

Hi,

I have issue here on how to get current date and time in my fields. Please help.

Thank you.

Standard php (PHP Date and Time):
$curdat=date(β€˜m-d-Y H:i:s’);
move to field:
{myfield}=$curdat;

If you have set a global to retrieve date/time, then you can use this global as the initial value of your field.

1 Like

Great , it’s working. Thank you so much :heart:

πŸš€ Scriptcase 9.12 is now available! Check out the new features here πŸ‘‰πŸš€ Next Monday (02/24), Scriptcase 9.12 will be released! Check out the new features before anyone else πŸ‘‰