HighTechTalks DotNet Forums  

XML data, Date - Time

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss XML data, Date - Time in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jeff Uchtman
 
Posts: n/a

Default XML data, Date - Time - 08-30-2006 , 10:32 PM






Not sure if this is the right group. Have a XML wiht date coming in the
following format:
<date_MMDDYYYY>

Have a function pulling numbers

function getDate(d) {
return d.slice(5,7) + '/' + d.slice(7,9) + '/' + d.slice(9);
}

Would like to convert to long date, i.e August 29, 2006.

Any help?
Thanks
Jeff

Thanks
Jeff



Reply With Quote
  #2  
Old   
Alex Turmer
 
Posts: n/a

Default Re: XML data, Date - Time - 08-31-2006 , 08:05 AM






If you'r in jscript, use the Date object

Cheers

AJ

Jeff Uchtman wrote:
Quote:
Not sure if this is the right group. Have a XML wiht date coming in the
following format:
date_MMDDYYYY

Have a function pulling numbers

function getDate(d) {
return d.slice(5,7) + '/' + d.slice(7,9) + '/' + d.slice(9);
}

Would like to convert to long date, i.e August 29, 2006.

Any help?
Thanks
Jeff

Thanks
Jeff



--
www.deployview.com
www.nerds-central.com
www.project-network.com


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.