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 / Current Version (Old)
 How does Snitz retrieve the date/time from server?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

QuestionMan
Starting Member

4 Posts

Posted - 31 May 2001 :  11:49:10  Show Profile
I have been modding an asp news page to link to a forum thread for each news post (a comment system). So far, everything has gone well, but I can't figure out how Snitz calls the date/time from a server so that it is stored in the database in a string format. I know the command that it uses to change the format back and forth, but I need to insert the raw data for my news posting script.

I usually use commands like <%=Year(Date)%>0<%=Month(Date)&Day(Date) %><%= Time %> in my asp scripts, but my server does not give the data in the same format that Snitz wants (somehow Snitz changes this automatically).

Any suggestions?

BuffyNET
Junior Member

United Kingdom
126 Posts

Posted - 31 May 2001 :  11:52:15  Show Profile  Visit BuffyNET's Homepage  Send BuffyNET an ICQ Message
In the file inc_functions you will find a function that changes the date back and forth, the two functions are called strToDate and DateToStr, load up inc_functions and do a search for these functions.

Neil

This is my Sig! ©2001 My Sig & Co. Ltd. Plc. etc
Go to Top of Page

QuestionMan
Starting Member

4 Posts

Posted - 31 May 2001 :  11:54:55  Show Profile
Excuse my ignorance, but do those commands actually call the date and time from a server? Or do they simply convert data that has already been obtained (I don't see any command for that)?

Go to Top of Page

BuffyNET
Junior Member

United Kingdom
126 Posts

Posted - 31 May 2001 :  12:01:06  Show Profile  Visit BuffyNET's Homepage  Send BuffyNET an ICQ Message
No, you pass the date to the function and it gives you the string, and vice versa

Neil

This is my Sig! ©2001 My Sig & Co. Ltd. Plc. etc
Go to Top of Page

BuffyNET
Junior Member

United Kingdom
126 Posts

Posted - 31 May 2001 :  12:05:29  Show Profile  Visit BuffyNET's Homepage  Send BuffyNET an ICQ Message
It actually gets the time in Config.asp and places it in the variable strForumTimeAdjust, so all you need to do is pass this to the function ie

StringDate = DateToStr(strForumTimeAdjust)

Neil

This is my Sig! ©2001 My Sig & Co. Ltd. Plc. etc
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07