Results 1 to 2 of 2

Thread: [2.0] Dateformat in a dataset

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    240

    [2.0] Dateformat in a dataset

    Dataset ask for a date format as

    Code:
    mm/dd/yyyy hh:mm:ss am/pm.
    Is there any way to edit it so that the dataset can accept this kind of format:

    Code:
    mm/dd/yyyy


    Many thanks...

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] Dateformat in a dataset

    DateTime objects don't have a format. Only string representations of dates have formats. A string representation of a date is not a date.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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