PDA

View Full Version : token to get the today's date?


erichar11
06-28-06, 11:21 PM
Looking for a way to get today's date so I can add it to a page. Is this possible?

bgik77
06-29-06, 12:21 AM
%OUI%
%VAR(g.OUIX_date)%

Vic - WolfPaw Computers
06-29-06, 12:37 AM
With OpenUI:

%OUI%
%FUNC(Format_Date(%VAR(s.time_t)%,"en-US"))%
Date: %VAR(g.OUIX_FuncReturn)%

erichar11
06-29-06, 12:39 AM
%OUI%
%VAR(g.OUIX_date)%

Thanks, but that did not work. I'm using Miva 4.19 if that helps. I got no errors, just no date. Any other suggestions? By the way, I'm using this token within the VC catagory page templates and have %OUI% at the beginning of the template area.

Vic - WolfPaw Computers
06-29-06, 12:42 AM
4.19? You definately need to upgrade that. 4.19 was full of bugs and only out for like 3 weeks before it was pulled.

I tested my example, and it works.


Thanks, but that did not work. I'm using Miva 4.19 if that helps. I got no errors, just no date. Any other suggestions? By the way, I'm using this token within the VC catagory page templates and have %OUI% at the beginning of the template area.

erichar11
06-29-06, 12:43 AM
With OpenUI:

%OUI%
%FUNC(Format_Date(%VAR(s.time_t)%,"en-US"))%
Date: %VAR(g.OUIX_FuncReturn)%

Vic, your coded worked.

Thanks

lvalesko
07-03-06, 05:02 AM
How can we get it to read: July 2, 2006??

And add the time??

Thanks
Lori :-)

lvalesko
02-19-07, 05:32 AM
Anybody???

Vic - WolfPaw Computers
02-19-07, 06:18 AM
%OUI%
%FUNC(Format_Time_Short(%VAR(s.time_t)%,"en-US"))%
Time: %VAR(g.OUIX_FuncReturn)%

Anybody???