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)
 Converting date() to Snitz text/date format
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMANIGHTx
Junior Member

Italy
191 Posts

Posted - 14 July 2001 :  14:20:51  Show Profile  Visit xMANIGHTx's Homepage
I put users in Snitz DB from my code (the forum is in a intranet). Wich functions do I have to copy (and call) in my code to convert a normal date to Snitz text/date format? (I need to put something in M_DATE and M_LASTHEREDATE fields when I create a new account)

I have another BIG problem! When I go back from the forum to my site... all dates are MM/DD/YYYY instead of DD/MM/YYYY (that's because i put the DD/MM/YYYY option in Snitz where dates are now correct but in the whole intranet all dates are inverted!!!!!!) HELP!

Distractly yours... manight@audiopro.it

Edited by - xMANIGHTx on 16 July 2001 06:30:08

xMANIGHTx
Junior Member

Italy
191 Posts

Posted - 15 July 2001 :  05:05:08  Show Profile  Visit xMANIGHTx's Homepage
Ok I think I found out the way adte is assembled (it's just a string of YYMMDDhhmmss i guess).

But please how can I put server date/time back to normal (Italian short/date time DD/MM/YYYY) when I go back to the intranet.

Distractly yours... manight@audiopro.it
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 15 July 2001 :  07:17:18  Show Profile  Visit HuwR's Homepage
if you look in the inc_functions.asp file, yoou will find two functions DateToStr and strToDate, that is what they do.

Go to Top of Page

xMANIGHTx
Junior Member

Italy
191 Posts

Posted - 16 July 2001 :  06:28:43  Show Profile  Visit xMANIGHTx's Homepage
Thx HuwR I think I did the right algorythm to do it myself (I have to do it one time when a user is registered in the intranet, sono no need of functions for several conversions).
The real problem now (and that really hurts!) is that when I go back to the intranet (non-forum) pages all dates are inverted and in english (I put UK short in the server date tim forum config) instead of italian. Do you know how to put them back to normal DD/MM/YYYY italian format (even if I have to add a functions on each intranet page) Thx guy

Distractly yours... manight@audiopro.it
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.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07