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

Inserting Date & Time


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

Recommended Posts

Posted

Hi,

I have a button on my layout which will insert the date and time, however it all comes in as one long line...

6/22/20071:04:51 PM

Is there a way to add a space between the date and time?

Thanks,

James

Posted (edited)

Hi James,

Set the date and time?

Sure, set the field with Get ( CurrentTimeStamp) and it'll have a space. What are you currently using? If you are manually combining a date and time field, insert the space yourself as:

theDate & " " & theTime

UPDATE: And if your field (being set) *is* a timestamp field, it'll be much more useful in the future.

LaRetta

Edited by Guest
Added update
Posted (edited)

Laretta,

I have created a script and currently use the two canned scirpts:

Insert Current Date

Insert Current Time

and I have selected the "Go To target Field"

I have attached the script to my button, and as I stated it does the job, but it places it all in one line.

So, do I understand that I should not use the canned script?

Never Mind the question above...I followed your directions and it worked like a charm!!!!!

Thanks for your time.

James

Edited by Guest
Posted

Ah just use Set Field. In your script just make it

Set Field[Your Table::Your Field ; Get( CurrentTimeStamp)

Another way is like Laretta was suggesting and it would look like.

Set Field[Your Table::Your Field ; Get ( CurrentDate )&" " & Get ( CurrentTime )

Both will produce the same thing.

Michael

This topic is 6365 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.