route217
asked on
Amend date field in SQL Statement
Hi Experts
I have the following line of SQL Statement
ISDATE(created_dateonly) as created_date_only,
which in column Created_dateonly is the date in format 2012-12-06 and in column Created_Date_only shows 1 and 0.....
how can i change the SQL so in column Created_date_only the date is in the format 25/09/2013...
I have the following line of SQL Statement
ISDATE(created_dateonly) as created_date_only,
which in column Created_dateonly is the date in format 2012-12-06 and in column Created_Date_only shows 1 and 0.....
how can i change the SQL so in column Created_date_only the date is in the format 25/09/2013...
ASKER
hi angeliii
the expression works but the new column created to the right the date is still in the format 2012-12-06.......not as 06/12/2012...
the expression works but the new column created to the right the date is still in the format 2012-12-06.......not as 06/12/2012...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi angeliii
you're second expression works...but a hand full of date s are still appearing in the format 2012-06-12......hmmmmmm
you're second expression works...but a hand full of date s are still appearing in the format 2012-06-12......hmmmmmm
can you show examples?
maybe isdate() is returning 0 ...
maybe isdate() is returning 0 ...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
angeliii
correct the is date is returning a 0....
correct the is date is returning a 0....
then let's check on which values it's doing that.
ASKER
hang fire...
https://www.experts-exchange.com/Database/Miscellaneous/A_1499-DATE-and-TIME-don%27t-be-scared-and-do-it-right-the-first-time.html
you may try this expression:
Open in new window