Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Problem in convert the value as Date datatype using Javascript (https://www.askmehelpdesk.com/showthread.php?t=13362)

  • Oct 4, 2005, 10:00 PM
    jenagan
    Problem in convert the value as Date datatype using Javascript
    Dear,

    I'm working on a ASP, Javascript code, where I tried to send one Date value from one popup window to its opener main window.

    popup code--------
    <script language="JavaScript">
    function sendvalue()
    {
    window.opener.setValue($date);
    window.close();
    }
    </script>

    main Window code------
    <script language="JavaScript">
    function setValue(val)
    {
    window.location='nextPage.asp?da='+val;
    }
    </script>

    The problem is, while the value which need to pass being as correct formet (eg: 10/13/2005) when it received by "setValue" Method in main window it converted as like "0.0006234413965087282" this format.

    Can you please give a solution to receive the value in again same format?

    Thank you..

    jena..

  • All times are GMT -7. The time now is 08:52 PM.