Microsoft
Software
Hardware
Network
Question : Converting Dates with SQL
Howdy,
I am modifying an Access 2003 table. The original table has a, "Date/Time" field which has dates in the formats: 9/23/2008 and 11/24/2009, etc. These dates represent credit card expirations. Using SQL, I would like to copy these dates into a new table and field while converting them to a "Text" data type. The new format will be: "09/08" and "11/09," etc. I do not need to know the day the card expires, just the month and year. Is there a way to do this with SQL? If not, how 'bout a VBA example...Thanks Dudes!
Answer : Converting Dates with SQL
select format([DateField],"mm/yy"
) AS ExpiryDate into tableX
from tableName
Random Solutions
Remove Strange Characters from Access Data Field
convert adjacency model table into nested set model table
Windows 7 - Advice required to remove old Windows XP from dual boot.
Increase number of rows per page in ASP.NET GridView
Sorting NULLs last when Sort Order is Ascending
Outlook 2007 Keeps Asking for Password - Doesn't Like Anything I Type - Vista / Exchange Email
Error-handling if SQLCMD fails in .bat Windows script
Date formula in Excel
Show only comments, not formatting changes in track change balloons in MSword 2003
Completely confused about Live Sync