Print Thread
How I can read a parameter with specified format
#32328 07/03/03 11:45 AM
Joined: Jul 2003
Posts: 7
V
vovidiu Offline OP
Member
OP Offline
Member
V
Joined: Jul 2003
Posts: 7
Hello,

How I can read a parameter date or number with specified format DD.MM.YYYY or 999g999g999g999d99.

Thnks,
Ovidiu

Re: How I can read a parameter with specified format
#32329 07/03/03 10:19 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
You cannot specify the date or number format of a substitution variable. A date ot number must conform to the current Windows format.

You can however convert from a specific format in your query. For example:[quote]
Code
select * from emp
where hiredate > to_date(&<name="Hiredate" type="string">, 'dd.mm.yyyy')
[/quote]

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.077s Queries: 13 (0.005s) Memory: 2.4948 MB (Peak: 3.0378 MB) Data Comp: Off Server Time: 2024-04-29 17:41:06 UTC
Valid HTML 5 and Valid CSS