Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

xml date

Hi,
Is there any method for Time stamp in xml?For ex if a: user is adding data
into the form it shod have a time stamp as to when he
added the record.This timestamp be displayed in the xsl file.
Any help is appreciated
Thanks in Adv!!
[259 byte] By [Vani] at [2007-11-9 14:55:27]
# 1 Re: xml date
>Is there any method for Time stamp in xml?For ex if a: user is adding data
>into the form it shod have a time stamp as to when he
>added the record.This timestamp be displayed in the xsl file.

Vani,
Im not getting what exactly you are talking about.
If you are talking about xml stored at server-side thru a form posted from
the client, then I'm sure you have an ASP at the server-side, which writes
the data onto the xml, it can very well use the VBScript Now() function.

Otherwise, if you have the xml persisted at the client side, you must do
it using client-side JScript functions, which can use the Date() class.

Net-Net, any method used to write the data to xml format, has access to the
system-datetime, which it can write to the same xml as a separate <tag>.

hmph...
Rohit
Rohit Wason at 2007-11-11 23:33:52 >