I have virtual directory where I run test.asp page with only this code inside:
<%Response.Write now()%>
As a result, if I go into the IE and browse for the test.asp page, I get : 1/22/2004 14:18:04
If I copy this page on some other(existing) virtual directory, I get as a result 22.1.2004 14:19:06
If I create a new virtual directory and I copy the page there, I get : 1/22/2004 14:18:04
Seems like that IIS takes english date format even if my regional setting is : d.M.yyyy and I would like that date on the page is always like this: 22.1.2004 14:19:06
my database, sqlplus oracle, has a column ccexpiry, whch is set to date. In my form in asp, there will always be an error whenever i pass in a date that is not in the DD MMM YYYY which is the standard for oracle. My qn is how can i pass in a date that is in DD/MM/YYYY format? Code:
I have written various scripts where the date is enter as mm/dd/yyyy. However, they wanted changed to dd/mm/yyyy. How can make these changes with less pain?
I am using an Access Database. Which means, I will probably have to program that field the same way. But the only option it provides is something like "29-Sep-05". I can tell the user to enter the field as mm/dd/yyyy. But how can I have it done with the code to be saved on the database.
i am having the dd/mm/yyyy format in my computer. i have done coding in asp page according to it. but when i run the same asp pages in different machines it shows me undesired results. so how do i change different machines settings also to dd/mm/yyyy format.
Anyone who can help me with a code to convert a date string to another format? Today the format is like this: 2005-01-12T10:06:42.8130000 I want to change it to this format:12.01.2005 12:06:42 (mm.dd.yyy tt:mm:ss)
I can`t use any fancy server tools, just plain asp-code that I can implement in my existing files. The date is a text string - and should be convertet using a little codes as neccessary.
My asp pages that display data from databases have suddenly changed the date format they display from UK to US, i.e. 11/17/2001 for 17th Nov 2003. I have checked on the win2k sp3 server that they run on, and the date/time zone is GMT UK and also the regional settings are correct for the UK.
The server has been patched in the last couple of weeks, but I'm not sure which patches as various engineers have access to it. However, does anybody know why this should happen when all the date/time settings are correct for the UK format?
the date format in my database(ms access) used to be mm/dd/yyyy and i've changed to dd/mm/yyyy. Now the date appears fine in the db. however wen i retrieve the data and displays in on a form, it is back to it's default format(mm/dd/yyyy). is there anyway whereby i can change it?maybe something like FormatNumber(rs("FromDate")) or whatsoever?
In my db, I have a date field wich as the format yyyy-mm-dd but when I receive the value from the DB, I'd like to change it to dd-mm-yyyy... How can I do this?
This is regarding a change in the Short Date format under Hebrew Regional Settings, that has caused huge problems in our ASP web application. The change appears to have been introduced sometime before Windows 2000 Service Pack 4 and has remained through to Windows XP. I am looking for a solution that doesn't involve rewriting our application (much) and that allows all our users to keep using Hebrew Regional Settings.
To summarize our problem - we have an ASP-based intranet web application that is used in our Israel office. Before we installed Windows 2000 SP4 on our web server and on the client machines in the office, the application ran perfectly. Dates appeared on the pages and in input textboxes in the correct dd/mm/yyyy format. Immediately after installing SP4, dates on the pages and in input textboxes are formatted as yyyy/mm/dd. This is not just a visual change, it has caused many functions in the application to break. Code:
i have several fields in the database that the format is number. then, i have a report page that allow user to open it the ms excel. my problem is, when all data transfered to ms excel, all data that is in number format, they are located at the right of the cells and there is 1 data named noIC, suppose this data is a 12 digits number but in the ms excel, it became something like this 780945+E12....
to solve this problem, i have to change the cell's format everytime all data have been transferred to ms excel. i have to set to left indent for all fields that contain numbers and for the noIC i have to set from General to Number.
I'm calling an update procedure from Oracle using ASP..
<pre> With objCommand .CommandText = "{call cust_Update(?, ?, ?)}" .CommandType = adCmdText .Parameters(0).Value = varCus_id .Parameters(1).Value = varf_Name .Parameters(2).Value = varbirthdate .Execute() ............ </pre> the problem I'm having is when entering the birthdate. This is the error I get... Microsoft OLE DB Provider for Oracle error '80040e14' I believe it has something to do with the delimiter in the date string("/"), but not sure? The Oracle procedure birth_date column is in "mm/dd/yy" format: birth_date=to_char(i_birth_date,'mm/dd/yy').... When I pass this in the textbox from the asp in this format I get the error? How can I resolve the ASP to take in the right characters for the birthdate?
I'm returning a date (5th Jan 2004) from Oracle using the following query:
select TO_CHAR(invoice_date,'DD/MM/YYYY') from...
This should return my date in the UK format, and it certainly appears to be doing just that in Toad. And it also looks correct in my form as it shows as:
05/01/2004
However when I submit my form I am having to convert the date to an Oracle format using this function: Code:
I'm trying to post a date value into an oracle 9i database, using classic asp, as that's the language existing app was written in, using the following code:
to_date('"&date()&"','DD-MMM-YYYY')
that's included in the insert statement, i keep getting the following error on the page:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Oracle][ODBC][Ora]ORA-01821: date format not recognized
any ideas? i checked the database type in the table, it's set to Date.
I get the following error message when I search for some fields stored in oracle database.
Microsoft OLE DB Provider for ODBC Drivers (0x80020009) [Microsoft][ODBC driver for Oracle][Oracle]ORA-01861: literal does not match format string /documenttracking_v3/ReportMain.asp
The script functions correctly using MSAccess and MS sql, when I moved to Oracle I keep getting Date format error messages eventhough The script includes a function that forces the date format I need. Code:
We want the currently date display in the input box (asp code), if the user wants to change the date, they can pick a diff. date from "date picker calendar". It picks the date...and it works fine.
When I try to submit, it doesn't submit the Date that I picked. I view the source code, it seems like it doesn't change the New DATE that I picked from the calendar. How can make its value change?
dates are formatted according to the system date format. However, I have found that a couple of computers consistantly display dates in American format. I have had the techos check all possible areas for setting of dates and I am assured that the proper setting have been made.
Is there a asp command somewhere, I can use that will set all dates displayed as dd/mm/yyyy. I have got around this problem by using Day(),Month() and year() and formatting dates accordingly each time I need to display a date.
I'm currently entering the date into my date field using the now() function, which delivers this result: 2/2/2004 9:08:09 AM which is fine for some cases.
However, when retreiving this result, sometimes I'd just like to pull up the first part, such as the 2/2/2004 and cut out the rest. How do I take this date output, and format it to show only what I want? I'm writing all this in ASP.
I have two textfields. One for date entered and one for date expires. If I type in todays date 23/10/07 and press tab on the keyboard, I want the next field to automatically show the date in 6 months. I have seen this done on other websites but have no idea how to achieve this.
I can use to rotate images based on the date. I have a number of logo images that I want to appear in the same location of my web page. However, I want to determine which one is "active/viewable" depending on the date. I'm somewhat of a noob although I know how to manipulate canned scripts to get them to work. Any scripts out there that do such a thing?