Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 630
  • Last Modified:

Default date field to current date in IBM Forms

Hi,

I am using IBM Forms on my portal server where I have a date field. The user supplies a number of days to my form in one field and a start date in another fields.  I need to calculate the end date from there.  I need two things here, first I need to default the start date to tomorrow and second I need to set the end date when the date or number of days changes. Does anyone know how to do this?  Please be explicit, I have only been doing forms for three weeks and already the training is seeping away...

Bubba
0
bganoush
Asked:
bganoush
  • 2
1 Solution
 
ahoffmannCommented:
> .. date to tomorrow ..
what is "tomorrow" when the server is located in timezone EST, runs with timezone GMT and its TZ environment is set to MST and also the client (browser) is located in GMT-12 runs in timezone PST and claims via browser settings and/or HTTP headers to be in GMT+3

would you do the calculation on server (which I recommend) or on the client?

sorry for beiing a bit pedantic for a question which sounds simple, but we're in a global world  ;-)
0
 
bganoushAuthor Commented:
Both the server and the users are local in the same timezone, they actually use the same time server to synchronize their clock.

I was able to find some samples to do this.. thanks anyway....
0
 
bganoushAuthor Commented:
Found solution by asking Dr. Google...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now