Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Wrong date
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 August 2002 :  13:19:12  Show Profile
Count up for the unpublished post.

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page

Walter8614
Starting Member

10 Posts

Posted - 11 August 2002 :  14:38:25  Show Profile
I have seen a lot of options, but I don't now withs one is good.
I'm not really good in editing files.

Walter
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 August 2002 :  14:41:24  Show Profile
You can use the function posted by me above. Just select to reply by quote to my post where the function is posted and then copy the code and add it to inc_functions.asp. Rename the existing function to some other name.

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2002 :  14:43:51  Show Profile  Send ruirib a Yahoo! Message
You can use Gaurav's function. As he says it's the most compact one, and there is a sortta elagance into it.

Just replace the current StrToDate version in inc_functions.asp.
Be careful with line breaks when copying and pasting. You'd better reply to the post where the code is posted, copy it from the reply window and paste it in your file.
Make sure your final function will look exactly like it looks here.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Walter8614
Starting Member

10 Posts

Posted - 12 August 2002 :  03:46:09  Show Profile
function OldstrToDate(strDateTime)
if chkDateFormat(strDateTime) then
StrToDate = cdate("" & Mid(strDateTime, 5,2) & "/" & Mid(strDateTime, 7,2) & "/" & Mid(strDateTime, 1,4) & " " & Mid(strDateTime, 9,2) & ":" & Mid(strDateTime, 11,2) & ":" & Mid(strDateTime, 13,2) & "")
else
strToDate = "" & strForumTimeAdjust
end if
end function

function StrToDate(strDateTime)
if ChkDateFormat(strDateTime) then
StrToDate = cdate("" & Mid(strDateTime, 5,2) & "/" & Mid(strDateTime, 7,2) & "/" & Mid(strDateTime, 1,4) & " " & Mid(strDateTime, 9,2) & ":" & Mid(strDateTime, 11,2) & ":" & Mid(strDateTime, 13,2) & "")
else
tmpDate = DatePart("m",strForumTimeAdjust) & "/" & DatePart("d",strForumTimeAdjust) & "/" & DatePart("yyyy",strForumTimeAdjust) & " " & DatePart("h",strForumTimeAdjust) & ":" & DatePart("n",strForumTimeAdjust) & ":" & DatePart("s",strForumTimeAdjust)
StrToDate = "" & tmpDate
end if
end function

Withs one I most overwrite?

Walter
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 12 August 2002 :  08:03:45  Show Profile  Send ruirib a Yahoo! Message
You need to replace StrToDate.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Walter8614
Starting Member

10 Posts

Posted - 12 August 2002 :  10:10:53  Show Profile
I have overwrite it.
Now he says my last visit is on 10 august.
I hope that that will repair his self.

Walter
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 12 August 2002 :  12:56:17  Show Profile  Send ruirib a Yahoo! Message
Well I can't understand whether that fixed it or not.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 August 2002 :  14:38:58  Show Profile
Walter login and logout. Date swap occurs when the day is less than 13. Idf you log out your last visit date will be updated to today and it will show as 12 August and that will be correct. However I will think 10 Aug is correct, which is 2 days earlier. In case of date swapping it would most likely show 8 October.

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page

Walter8614
Starting Member

10 Posts

Posted - 12 August 2002 :  15:40:37  Show Profile
It have workt!
Thank you.

Walter
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 August 2002 :  16:08:03  Show Profile
Good to know!
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.42 seconds. Powered By: Snitz Forums 2000 Version 3.4.07