www.webdeveloper.com
Results 1 to 2 of 2

Thread: C# date functions?

  1. #1
    Join Date
    Jun 2004
    Posts
    390

    Question C# date functions?

    Are there any C# date functions that I don't know about... or do I need to do all the string parsing myself?

    I need to compare a smallDateTime query to a variable of type Date.
    Last edited by schizo; 11-01-2004 at 03:07 PM.

  2. #2
    Join Date
    Jun 2004
    Posts
    390
    A weird dream at about 5 AM this morning helped me figure it out...

    Code:
    DateTime date_dt = DateTime.Parse(date_str);
    This will convert the date string to type DateTime, thus allowing you to access all it's properties.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles