I've been wracking my brain trying to get this figured out, and all of the solutions that seem like they should work, aren't. I have a date field recorded as A10 (SQL: Char(10), Master File is A10) in my DB. I am attempting to convert it to MDYY format for filtering purposes.
Source Field called FROM_DATE, A10, '30/12/2015' is the example date.
From what I've been reading:
DATECVT (FROM_DATE, 'A10DMYY', 'MDYY') as a detail (DEFINE) field, or some similar variation, should work.
I keep getting blanks for the converted field.
I'm sure there's something ridiculously simple that I'm missing, but I can't find it. I'm openly welcoming someone to post the solution and make me look stupid!! Sorry if this is a repost, but I've been searching and experimenting all day...This message has been edited. Last edited by: A Fisher,
WebFOCUS 8.2.0.1 / App Studio 8.2.0.1 (04092014) / Windows 7 / HTML5, PDF, XLS
This is an essential reference guide for anyone who is constantly working with date conversions.
Also if there is a date format you are constantly converting to another I would consider placing a function on the server rather than coding it into every fex.