Ask a Question related to ASP Database, Design and Development.
-
Ralph Hodenius [MS] #1
RE: ASP integer date/time converting problems
Hi Rob,
This is definitely not a UTC conversion. I don't know what kind of notation
it is. The best way to converting this date is by using your own function.
For the date I used your crystal code as example and converted it to asp
code. Put the following code in an asp file and run it as example.
<%
Function DateConvert (OrgVal)
Dim TheYear
Dim TheMonth
Dim TheDay
TheYear = CInt(OrgVal / 65536)
TheMonth = CInt((OrgVal - (TheYear * 65536)) / 256)
TheDay = CInt(OrgVal - (TheYear * 65536) - (TheMonth * 256))
DateConvert = TheYear & " - " & TheMonth & " - " & TheDay
End Function
response.write "Date: " & DateConvert(131269907)
%>
I don't know how to convert the time. But it shouldn't be to hard if you
know how to do it with Crystal Reports.
Regards,
Ralphho
Microsoft
Ralph Hodenius [MS] Guest
-
CFMX7.0.1 Administrator date time issue showing 13hrsbehind server time
I am running a W2k SP4 box that has been upgraded from CFMX6 to CFMX7.0.1. The CFMX7.0.1 server is showing the date on the Server Settings >... -
Please help! Serious date time number problems after server migration
To all IIS/ASP-professionals, we just upgraded from one machine to another and are experiencing some strange date time number problems. Both... -
Convert date/time to date in SQL Server 2000 statement
Can this be done? tia -
converting date into database date format(newbie)
Hi! U can convert "8-Aug-03" into mysql date which requires yyyy-mm-dd format as below. <?php date("Y-m-d",strtotime("8-Aug-03")); ?> -
converting Raw integer color values to RGB?
Does anyone know how to convert raw integer color values (what you get when using getpixel on a 32bit image) into RGB values? Thanx. Paul Weaver...



Reply With Quote

