Results 1 to 2 of 2

Thread: time and date

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    time and date

    hello!
    how can i output this date?
    jan-08-2006 and 08:12 AM

    tnx

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

    Re: time and date

    If you have a DateTime object that you want to convert to a specific string representation then you call its ToString method and specify the format. Rather than answering this specific question I'll provide a link to information about date/time formatting. That way you'll be able to produce any format you want.

    http://msdn2.microsoft.com/en-us/library/97x6twsz.aspx
    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