I have been working on getting the client date and passing it to the server on loading an aspx page, but a problem has arisen:
I wrote a function called ClientDate()
in my custom ppm.js
library, and I wrote some vb.net codebehind which creates a startup JavaScript that calls that function on startup and saves the output to a textbox
.
It seemed to be working correctly until I decided to change the format of the date returned by ClientDate()
from yyyymmdd
to yyyy-mm-dd
. The textbox continued to display the date in the old format. When I changed the function output to "Hello, World"
, it continued to display the date in the old format, and when I commented out the function completely in the library, it still displayed the date in that format. Restarting and rebooting the computer have no effect.
Clearly, my page is finding ClientDate()
someplace else. I searched my project for ClientDate()
and found only two occurrences, once in the library and once in the startup JavaScript that calls it.
I can think of 2 possible explanations (but don't believe any of them):
There is a built-in JavaScript or jQuery function called
ClientDate()
that is being called instead of mine.There is a hidden file containing an older version of the
ClientDate()
function.
Any ideas how I can track this bug down?