[Qgis-user] "Date" and "Time" Column to "Date Time" column

Luigi Pirelli luipir at gmail.com
Fri Feb 20 02:37:56 PST 2015


You can create a custom function [1] where using static methods
QDate.fromString(...) and QTime.fromString(...) and return a QDateTime
in ISO format ar in the format you need

regards, Luigi Pirelli

[1] https://woostuff.wordpress.com/2012/11/10/user-defined-expression-functions-for-qgis/

On 20 February 2015 at 07:19, Werner Macho <werner.macho at gmail.com> wrote:
> Hi!
> I would start by creating a new column and using the field calculator
> to concatenate these two other attributes ..
> Currently I am not able to try - but that would be at least a starting point ..
>
> regards
> Werner
>
> On Fri, Feb 20, 2015 at 4:17 AM, Leo Kris Palao <lk.palao at gmail.com> wrote:
>> Hi ALL,
>>
>> I have two columns, namely "Date" and "Time" in QString format. How can I
>> convert these columns to Date Time (yyyy-mm-dd hh:mm:ss) format.
>>
>> Thanks,
>> -Leo
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user



More information about the Qgis-user mailing list