CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Date and Time

  1. #1
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    18

    Date and Time

    Hi, how do I convert user's input of date and time to a format that I desire (eg 26/10/1999 19:30:00) and save this data to an Oracle database? Another thing is, how do I compute the difference between 2 dates and times? Thanks in advance.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Date and Time

    use the Format-function to convert a date to any format you desire. (check the online help for all the different format options).

    Use DateDiff to calculate the difference between 2 dates.


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

Featured