Check out example codes for "select the date 30 days less that the todays date sql request". It will help you in understanding the concepts better.

Code Example 1

declare @thirtydaysago datetime
declare @now datetime
set @now = getdate()
set @thirtydaysago = dateadd(day,-30,@now)

select @now, @thirtydaysago

Learn ReactJs, React Native from akashmittal.com