Print Page | Close Window

Date problem

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=8709
Printed Date: 07 April 2026 at 11:05am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Date problem
Posted By: RAVALON
Subject: Date problem
Date Posted: 09 January 2004 at 9:54am

HEllo,

i encounter a problem with date formatting in 7,6 version

in the code below

 CInt(Day(dtmTempDate))

i think is connected with code below

 If strTimeOffSet = "+" Then
             dtmTempDate = DateAdd("h", + intTimeOffSet, dtmDate)
        ElseIf strTimeOffSet = "-" Then
             dtmTempDate = DateAdd("h", - intTimeOffSet, dtmDate)
        End If

because if i change dtmdate with command DATE i have not error (but is notcorrect to change in dtmDate in DATE)

the message i receive is, if i remember correctly,

Type Mismatch Cint(Day(dtmTempDate))

How can i change?




Replies:
Posted By: WebWiz-Bruce
Date Posted: 09 January 2004 at 10:39am
I'm not really sure what you are changing, but you shouldn't modify the code in this way or you will have problems.

If you want to change the date formating etc. then do so in your profile and the admin section of the forum in the application itself, you don't need to edit the code.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: RAVALON
Date Posted: 09 January 2004 at 10:52am
thanks for answer....i changed only becuase i upload all webwizforum and don't work



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net