Skip navigation
Currently Being Moderated

How Adobe gets DATE and its format?

Aug 20, 2012 4:38 AM

Hello,

 

I am getting current (todays) date by using below JS in some flds, and by using below FormCalc for some flds into my_form,

 

JS:

var currentTime = new Date()

 

Form Calc:

$.rawValue = num2date(date(), DateFmt(MM/DD/YYYY))

But, i dont have much idea that how adobe is getting this date? For my company this is the very first form, hence they are asking me how adobe gets date and its format whether,

 

1) From local IP/Interner provider address's date, format?

 

2) or user PC/laptop's LOCAL settings date, format? if so, for example, if Germany user (Laptop settings) has a DD.MM.YYYY configured, if this user comes to US on a busines trip and if that user opens the form, then how the date looks like for this user? as per user laptop settings DD.MM.YYYY or local internat provider date format MM//DD//YYYY?

 

Thank you

 
Replies
  • Currently Being Moderated
    Aug 20, 2012 6:05 AM   in reply to srinivas1506

    Hi,

     

    the date() function returns the number of days since 01.01.1900 for the local date of the current system (related to the system clock of the OS).

    If you travel from Germany to the US but don't update your date/time settings, then it returns the same date in the US as in Germany.

     

    You can check the behavior by changing your local date/time setting or the timezones.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 20, 2012 8:34 AM   in reply to srinivas1506

    From within a PDF ... No!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points