Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Force a field to be a date in the loading script

Hi,


Is it possible within the load script to force a field to be a date?
I mean, data come from QVD in a date format apparently (stored as numbers) and i would like they are automatically displayed as DATES using the LOAD SCRIPT.

Thanks a lot !

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

use

DATE(MyDateField) as OrderDate

as example.

Good luck!

Rainer

View solution in original post

3 Replies
Not applicable
Author

Hi,

use

DATE(MyDateField) as OrderDate

as example.

Good luck!

Rainer

Not applicable
Author

there is also date#(mydate) how indicates to qv that is a date field

Not applicable
Author

Hi,
I think Rainer solution should work :
your date field will be sub typed as date and displayed as date by default.

Please note that QVD are much faster to load if there isn't any treatment to do, so you can also load data as usual then go in Settings / Document Properties / Number and select Date format for your field

Or you should use the date function when you load date before you create the QVD instead of using it when loading data from QVD

Hopes it helps

Regards