Date & Time?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • LL

    #1

    Date & Time?

    Hi,

    How to get the current Date & Time?

    Date() & Time() ?

    Thanks.


  • Jay B. Harlow [MVP - Outlook]

    #2
    Re: Date & Time?

    LL,
    Have you tried either the System.DateTime .Now() or System.DateTime .Today()
    static functions. That returns the current date & time and the current date
    respectively?

    DateTime has a TimeOfDay that you can use to extract the time from a
    DateTime.

    Hope this helps
    Jay

    "LL" <lionelluo@hotm ail.com> wrote in message
    news:uzELcDcmDH A.2964@tk2msftn gp13.phx.gbl...[color=blue]
    > Hi,
    >
    > How to get the current Date & Time?
    >
    > Date() & Time() ?
    >
    > Thanks.
    >
    >[/color]


    Comment

    Working...