[Qgis-user] date expressions, symbology, current date

tim dunlevie tim.dunlevie5 at gmail.com
Mon Jan 17 21:36:58 PST 2022


excellent....thanks for the resource Alexandre !
Very useful...

Tim

On Tue, Jan 18, 2022 at 10:15 AM Alexandre Neto <senhor.neto at gmail.com>
wrote:

> Hello Tim,
>
> You can use rule-based renderer for creating your 3 categories.
>
>
> https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/vector_properties.html#rule-based-renderer
>
> As for the rules of each category, take a look at the now() function that
> will retrieve the current date and time, and age() function that will allow
> you to calculate the difference between two dates and cast it as months.
>
>
> https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/functions_list.html#now
>
> https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/functions_list.html#age
>
> Alexandre Neto
> User support
> www.qcooperative.net
>
>
> tim dunlevie <tim.dunlevie5 at gmail.com> escreveu no dia terça, 18/01/2022
> à(s) 00:50:
>
>> Hi guys,
>>
>> I am trying to symbolise a map based on a date field ('YYYY-MM-DD')
>> versus Current_Date
>>
>> I want to colour polygons based on these categories:
>> - day / month within 3 months of CURRENT_DATE (today).
>> - day / month within 6 months of CURRENT_DATE
>> - day / month within 9 months of CURRENT_DATE
>>
>> any ideas?
>>
>> thanks,
>> Tim
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220118/96e390e0/attachment.html>


More information about the Qgis-user mailing list