Welcome! Log In Create A New Profile

Advanced

Re: To split date column into day, month and year in SQL

Posted by sivakrith 
Re: To split date column into day, month and year in SQL
August 31, 2020 09:27AM
Hello,

Using Windev 22, HFSQL 22

When I try to run the below query in WDSQL ( against HFSQL Classic files)

SELECT a.accountnamefk, a.voucherdate, DateToString(a.voucherdate, 'DD/MM/YYYY')
FROM gl_transaction_detail a

I get the following error:

In this version, the stored procedures are not supported in HFSQL Classic or HFSQL Mobile.
Error detected:
a.accountnamefk, a.voucherdate, >>>>DateToString(a.voucherdate, 'DD/MM/YYYY')<<<<<


How to split a date value stored in a file into day, month, year in HFSQL query ?

Happiness Always
BKR Sivaprakash
Re: To split date column into day, month and year in SQL
August 31, 2020 01:06PM
Hi,

you should use WL to indicate you want to use a WLanguage functions in SQL queries

SELECT a.accountnamefk, a.voucherdate, WL.DateToString(a.voucherdate, 'DD/MM/YYYY')
FROM gl_transaction_detail a

more info here...
[doc.windev.com]

Arie
Re: To split date column into day, month and year in SQL
September 02, 2020 09:49AM
Thanks Arie.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: