Even better. :-)

------------------------------------------------
Randy Jaynes
Management Software


On Mar 18, 2004, at 7:25 PM, Aparajita Fishman wrote:

I have a date value in a variable. The date value is in format mm/dd/yy. I would like to display it on the web page in the format mm/dd/yyyy forced.

Provided the variable is a date variable you should be ok with:

        <%write(string(variableName;MM DD YYYY))%>

This uses the internal 4D constant.

Or, if you prefer the old way
        <%write(string(variableName;4))%>

The syntax is the same as 4D. Technically speaking the string() is superfluous, because write() can take a second argument which is the format, so you could just do:


<%write($myDate; MM DD YYYY Forced)%>

Regards,

   Aparajita
   Victory-Heart Productions
   [EMAIL PROTECTED]
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com

_______________________________________________
Active4d-dev mailing list
[EMAIL PROTECTED]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev




Reply via email to