GeneralRelationDate 1Date 2Date 3Date 4Date 5OverviewUse this tool to create custom code for WordPress Date Query with WP_Date_Query class.UsageFill in the user-friendly form.Click the “Update Code” button.Copy the code to your project.Or save it as a snippet and share with the community.ExamplesIf you are still learning how to use this tool, check out the following examples:Single date parameterMultiple date parametersRange of datesTextual description rangeNested date queriesQuery Variable Name The variable used in the code.Date Relation Choose...AND (default)OR The MySQL keyword used to join the clauses of the query.Date Type Date Parameters Before/After String Before/After Array Nested Date QueryYear Month Day Compare Choose...= (Default)!=>>=<<=INNOT INBETWEENNOT BETWEEN Operator used for comparing the value.Before Text Textual date/time description.Before Year Before Month Before Day Date Query No save snippets... Select from your saved Date Query snippets.Week Day of Week Day of Week (iso) Column Choose...post_datepost_date_gmtpost_modifiedpost_modified_gmtcomment_datecomment_date_gmt Comparing column other than the one in the top-level column.After Text Textual date/time description.After Year After Month After Day Hour Minute Second Inclusive Choose...Yes - DefaultNo Include results from dates specified, or not.Date Type Date Parameters Before/After String Before/After Array Nested Date QueryYear Month Day Compare Choose...= (Default)!=>>=<<=INNOT INBETWEENNOT BETWEEN Operator used for comparing the value.Before Text Textual date/time description.Before Year Before Month Before Day Date Query No save snippets... Select from your saved Date Query snippets.Week Day of Week Day of Week (iso) Column Choose...post_datepost_date_gmtpost_modifiedpost_modified_gmtcomment_datecomment_date_gmt Comparing column other than the one in the top-level column.After Text Textual date/time description.After Year After Month After Day Hour Minute Second Inclusive Choose...Yes - DefaultNo Include results from dates specified, or not.Date Type Date Parameters Before/After String Before/After Array Nested Date QueryYear Month Day Compare Choose...= (Default)!=>>=<<=INNOT INBETWEENNOT BETWEEN Operator used for comparing the value.Before Text Textual date/time description.Before Year Before Month Before Day Date Query No save snippets... Select from your saved Date Query snippets.Week Day of Week Day of Week (iso) Column Choose...post_datepost_date_gmtpost_modifiedpost_modified_gmtcomment_datecomment_date_gmt Comparing column other than the one in the top-level column.After Text Textual date/time description.After Year After Month After Day Hour Minute Second Inclusive Choose...Yes - DefaultNo Include results from dates specified, or not.Date Type Date Parameters Before/After String Before/After Array Nested Date QueryYear Month Day Compare Choose...= (Default)!=>>=<<=INNOT INBETWEENNOT BETWEEN Operator used for comparing the value.Before Text Textual date/time description.Before Year Before Month Before Day Date Query No save snippets... Select from your saved Date Query snippets.Week Day of Week Day of Week (iso) Column Choose...post_datepost_date_gmtpost_modifiedpost_modified_gmtcomment_datecomment_date_gmt Comparing column other than the one in the top-level column.After Text Textual date/time description.After Year After Month After Day Hour Minute Second Inclusive Choose...Yes - DefaultNo Include results from dates specified, or not.Date Type Date Parameters Before/After String Before/After Array Nested Date QueryYear Month Day Compare Choose...= (Default)!=>>=<<=INNOT INBETWEENNOT BETWEEN Operator used for comparing the value.Before Text Textual date/time description.Before Year Before Month Before Day Date Query No save snippets... Select from your saved Date Query snippets.Week Day of Week Day of Week (iso) Column Choose...post_datepost_date_gmtpost_modifiedpost_modified_gmtcomment_datecomment_date_gmt Comparing column other than the one in the top-level column.After Text Textual date/time description.After Year After Month After Day Hour Minute Second Inclusive Choose...Yes - DefaultNo Include results from dates specified, or not. Update Code Save Snippet