Jump to content
Sign in to follow this  
Guest developer_1

Only Date using xsd

Recommended Posts

Guest developer_1

i have created an XML file and XSD file. And i have to enter Date from a TextBox [ASP.net (using C#) as front ent ].i want only "Date" in one of my element ,so in XSD file i haev declared "Type=Date",But in XML it is storing as" <Donor_Letter_Date>2000-12-12T00:00:00.0000000+05:30</Donor_Letter_Date>"In this format can u please guide me .how to proceed .As i want only date in this elementThank You

Share this post


Link to post
Share on other sites
2000-12-12T00:00:00.0000000+05:30i want only date in this element
But the value you've shown is a date, in one of the XML date formats (see http://www.w3schools.com/schema/schema_dtypes_date.asp).Are you saying you don't want the time/UTC-offset included, you just want the date on its own?You should be able to format the date when you get the value from the textbox to your XML file. If you still need help, can you say more about the way you do this part.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...