You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

date format in SQR

Hi,
How can i can change the date format in SQR

Re: date format in SQR

Posts: 302
Join date: 06/23/08
Lepa's picture

Hi a.mahesh197 and welcome to the site :)

Take a closer look at the edit() function in SQR, it should do the trick.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Re: date format in SQR

Posts: 302
Join date: 06/23/08
Lepa's picture

You can also look at datetostr and strtodate functions.
example:

Let $date_string = strtodate ($mydate, 'YY/MM/DD')
Let $date_string = datetostr ($mydate, 'YY/MM/DD')

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Re: date format in SQR

Posts: 30
Join date: 06/30/08
Nitin's picture

How about using fucntion

FORMAT-DATETIME(&RH.RMA_DATE, $RMA_DATE, {DEFDATE}, '', '').

it'll format the date in the format set in pssqr.ini.

Thanks
Nitin Bhatia

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <div> <pre> <br> <code> <a> <em> <blockquote> <strong> <ul> <ol> <li> <dl> <dt> <b> <p> <h1> <h2> <u> <img>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>.

More information about formatting options

CAPTCHA
The question below is to prevent automated spam submissions.
11 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.