Author |
Topic  |
|
QuestionMan
Starting Member
4 Posts |
Posted - 31 May 2001 : 11:49:10
|
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
|
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
|
 |
|
QuestionMan
Starting Member
4 Posts |
Posted - 31 May 2001 : 11:54:55
|
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)?
|
 |
|
BuffyNET
Junior Member
 
United Kingdom
126 Posts |
Posted - 31 May 2001 : 12:01:06
|
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
|
 |
|
BuffyNET
Junior Member
 
United Kingdom
126 Posts |
Posted - 31 May 2001 : 12:05:29
|
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
|
 |
|
|
Topic  |
|