Log in

View Full Version : Generate Date


TheRealFragger
08-07-2006, 04:47 AM
Im working on a mod for my forums where when I create a new news on our homepage (not vb connected as of now) it will create a new thread in a forum. I know there are hacks out there that make threads into news BUT I would LOVE it if i could do it this way. Now the only issue I am having is creating the date of the post. If i cannot figure this out I will end up using some generic date (if i can figure one out) but i would prefer if i could figure out how this is done. Thanks

Kirk Y
08-07-2006, 05:18 AM
Use the vbdate function.

$today = vbdate('m-d-Y', TIMENOW, false, false);

TheRealFragger
08-07-2006, 05:20 AM
so that will generate the crazy code needed for the date to turn out right?

Kirk Y
08-07-2006, 06:19 AM
If I'm understanding your explanation right, yes. Change m-d-Y to suit your needs.