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

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

Recommended Posts

Posted

Hi all. I am think I am close but I am stuck. I have spent 2 hours trying to figure this out and I am at my breaking point. I have text field with a timestamp in it. I want to do date math between that field and the current date. My result is a huge number though. Any help would be appreciated as always.I have attached 2 photos one of the script and one the debugger watching the values. Excuse all the work fields just trying to debug it.

debugger.jpg

script.jpg

Posted

I have text field with a timestamp in it.

That's not a good starting point. If it's a timestamp, you should use a field of type Timestamp to store it.

Assuming you want the difference in days between the timestamp and the current date, you can then try:

Get ( CurrentDate ) - GetAsDate ( YourTimestamp )

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