Results 1 to 4 of 4

Thread: [RESOLVED] hardcoding dates

  1. #1

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Resolved [RESOLVED] hardcoding dates

    is it possible to hardcode dates similar to vb.net, #1/1/1900#, or is the only option to use DateTime.Parse("1/1/1900"), etc.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: hardcoding dates

    Use DateTime.Parse.

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

    Re: hardcoding dates

    Or "new DateTime(1900, 1, 1)" I guess. I must say that I was surprised that C# has no in-built date type either. I suppose the in-built type and the literal notation go hand in hand.
    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

  4. #4

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: hardcoding dates

    thanks
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

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