Results 1 to 5 of 5

Thread: Date & Time in a textbox

  1. #1

    Thread Starter
    Lively Member adsc's Avatar
    Join Date
    Nov 2002
    Location
    Kuwait
    Posts
    71

    Date & Time in a textbox

    Hi All,
    How to display the date only without the time in a textbox binded to a dataset?

    Thanks for the help
    <><><><><><><><><><><><><><><><><><>
    <><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
    <><><><><><><><><><><><><><><><><><>

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    You are probably going to have to use the custom binding expression to accomplish it.

  3. #3

    Thread Starter
    Lively Member adsc's Avatar
    Join Date
    Nov 2002
    Location
    Kuwait
    Posts
    71
    Thank you for your reply,
    Can I have some code please?
    <><><><><><><><><><><><><><><><><><>
    <><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
    <><><><><><><><><><><><><><><><><><>

  4. #4
    Lively Member flog3941's Avatar
    Join Date
    Nov 2002
    Posts
    123
    Is there an event that fires when the date is to be entered in this textbox?

  5. #5
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Not sure on how to do it with a textbox, but you will want to look into this method.
    DataBinder.Eval(Container, "DataItem.TheDateColumnName", "{0:mmddyyyy}")

    That is just an example, and don't know if the formatting part is right.

    Do a search on DataBinder.Eval method and read all about it.

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