CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2011
    Location
    Tennessee
    Posts
    19

    [RESOLVED] Convert date mm/dd/yyyy to yyyymmdd

    I have search the web but have not found an example exactly I am looking for. Have ASP.Net project using C# which I have several date fields. Each date I am having my users select a date from a calendar which then is moved into a text field in format of mm/dd/yyyy. When the record is to be inserted into a table the field in a DATE data type. Since it is date data type I guess need to convert to yyyymmdd but how do I do that?

    Thanks for any and all help.

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: [RESOLVED] Convert date mm/dd/yyyy to yyyymmdd

    [sarcasm] Thank you very much for sharing your solution with us... [/sarcasm]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured