问题描述:

So I currently have a field that is outputting dates as

03/26/14

This is a weird question, but is there anyway where I can have the date output without the year?

I would like the date to look like

03/26

Thanks!

网友答案:

If using SQL Server, you could:

SELECT CONVERT(VARCHAR(5), GETDATE(), 101)
网友答案:

Use this:

SELECT CONVERT(VARCHAR(5), GETDATE(), 03)
相关阅读:
Top