Author |
Topic  |
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 11 August 2002 : 13:19:12
|
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) |
 |
|
Walter8614
Starting Member
10 Posts |
Posted - 11 August 2002 : 14:38:25
|
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 |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 11 August 2002 : 14:41:24
|
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) |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 11 August 2002 : 14:43:51
|
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 |
 |
|
Walter8614
Starting Member
10 Posts |
Posted - 12 August 2002 : 03:46:09
|
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 |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
Walter8614
Starting Member
10 Posts |
Posted - 12 August 2002 : 10:10:53
|
I have overwrite it. Now he says my last visit is on 10 august. I hope that that will repair his self.
Walter |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 12 August 2002 : 14:38:58
|
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) |
 |
|
Walter8614
Starting Member
10 Posts |
Posted - 12 August 2002 : 15:40:37
|
It have workt! Thank you.
Walter |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 12 August 2002 : 16:08:03
|
Good to know! |
 |
|
Topic  |
|