Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Current Date Time in pb7.

Posted on 2004-11-09
3
Medium Priority
?
491 Views
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?
0
Comment
Question by:Mateen
  • 3
3 Comments
 
LVL 33

Expert Comment

by:sajuks
ID: 12541507
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
0
 
LVL 33

Accepted Solution

by:
sajuks earned 2000 total points
ID: 12541522
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))
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12542033
Thanks for the points and grade
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses

580 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