Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear expert,


Need to compose date in datetime format from the following


Extract the day from GETDATE()

and then join it to the Month Year

so if the GETDATE() is 11/30/2014 which has day 30

and the following will have to be combined with


MONTH YEAR NEW DATETIME COMPOSED
1. 2 2014 02/30/2014 ......
2. 6 2014 06/30/2014 .....


Please provide the necessary to achieve this need

Thanks
Posted

1 solution

check SQL Server Date Formats[^]
you may need to play with few extended and standard datetime formats and combine the results as one.
 
Share this answer
 

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