other manipulations looks sensible in the code u have provided....
> you might want to check this out.
> http://www.developersdex.com/gurus/code/452.asp
>> Yes I did change that on server...I am working on server itself....
>>> yeah you need to change the regional setting on the server. ASP is
>>> run server side so it will use the setting on the server and not the
>>> client machine.
>>>> I also get the same correct output when run from Visual Basic
>>>> But when I include this in ASP page and run like this
>>>> <% RESPONSE.WRITE FormatDateTime(Now, 2) %>
>>>> I get 6/13/2003 as output...why asp page is not showing me 6/13/03
>>>> any clues?
>>>> -developer
>>>>> Actually I played more. If in the control panel, I change the
>>>>> regional settings to d/m/yy, my script will run that way.
>>>>> in the script:
>>>>> DateNow= FormatDateTime(Now,2)
>>>>> msgbox (DateNow)
>>>>> my output is 6/13/03
>>>>> So it does work for me
>>>>>> If I can not use m/d/yy or mm/dd/yy then why those options are
>>>>>> there? Microsoft should remove this.
>>>>>> The problem is I have NT machine which is useing mm/dd/yy and the
>>>>>> programs are written for that and we are migrating to Windows
>>>>>> 2000 or XP and those programs fails.....
>>>>>> Can somebody confirm that yy is not supported anymore on American
>>>>>> version of W2K or XP?
>>>>>> thanks
>>>>>> I need to take care of this as an architecture of the system
>>>>>> -developer
>>>>>>> btw I researched this some (out of my curiousity) and found that
>>>>>>> long date= Friday, June 13, 2003
>>>>>>> short date= 6/13/2003
>>>>>>> short date doesn't change from 2003 to 03
>>>>>>> It seems that mm/dd/yyyy or dd/mm/yyyy and such are defined by
>>>>>>> your version of windows you have and it appears the American
>>>>>>> English version of Windows comes default of mm/dd/yyyy. I guess
>>>>>>> that dont give you the option of mm/dd/yy due to y2k and those
>>>>>>> concerns.
>>>>>>>> I am using windows 2000
>>>>>>>> I have set the date format in reginal setting in control panel
>>>>>>>> to m/d/yy short date sample over there is displayed correct
>>>>>>>> 6/12/03
>>>>>>>> when I use this statement
>>>>>>>> FormatDateTime(currentdate,2)
>>>>>>>> it returns me 6/12/2003
>>>>>>>> it should return me 6/12/03
>>>>>>>> Pls help
>>>>>>>> thanks