Current Date Time in pb7.

Posted on 2004-11-09
Last Modified: 2013-12-26
In powerbuilder version 7

today() holds current date.
now()  holds  current time.

Which variable holds current datetime?

If there isn't any, then how can I make it?
Question by:Mateen
    LVL 33

    Expert Comment

    You could use
    datetime ldt_today
    select getdate() into :ldt_today;

    The disadvtg of using today() and now() is that it shows the client time, while querying from the database
    will be consistent throughout your appln
    LVL 33

    Accepted Solution

    or simply using the below either in string or datetime, recmnd is the ldt_date value
    string ls_string
    datetime ldt_date
    ls_string = string(today()) +' ' +string(now())
    ldt_date = DateTime( today(),now())
    messagebox ( ls_string  ,string(ldt_date))
    LVL 33

    Expert Comment

    Thanks for the points and grade

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
    How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from ( Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now