Hi
I have below value in Database. It is DateTime field. Database is Sql. I want to add 2 weeks in Date, other values remain same.
2023-04-01 15:15:00.000
Thanks
Hi ramco1917,
You can use DATEADD function to add days.
Please use below query.
SQL
SELECT DATEADD(DAY,14,DateTimeColumn) AS DateTimeColumn FROM DateTimeTable
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.