Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in the out put i have date in the 28/1/2013 format.

i want to change the date format in to 28 jan.

how can i get the 28 jan format in ms access database not in sql.

i wanted in MSAccess database.

how can i do.

i try the below query is not working

select CONVERT(varchar(11), Sch_Date, 106) AS schDate, [Session],[Faculty_Code] from Tb_SCh_TIme_Table

from my above query what is the mistake i made.help me. i tried but not get the 28 jan ouput.
Posted
Comments
Zoltán Zörgő 1-Feb-13 1:56am    
This question is confusing. You tagged your question with c#, but you ask for some access solution. But if you use c#, why do you want to format your date field on database level?

1 solution

Use Format function: http://www.techonthenet.com/access/functions/date/format.php[^]

SQL
SELECT Format (Sch_Date, "dd\/mm\/yyyy")
FROM b_SCh_TIme_Table


Note the "\". You can omit it, but if you do, the system local could override it.

Update:
Use Format (D, "dd mmm") to get "28 jan" format.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900