Results 1 to 2 of 2

Thread: Date Format

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Malaysia
    Posts
    345

    Date Format

    Hi!

    How can I format a date to 'something like 18-Sep-2007' from '9/18/2007 12:00:00 AM' in C#.

    Pls Help.

    Thanks
    Thanks.

  2. #2
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: Date Format

    Code:
    Console.WriteLine(DateTime.Now.ToString("dd-MMM-yyyy"));

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