integer variable in create datetime variable

0
Hi all,  I’m expecting to get a really simple answer… I feel I should know this already haha I’m trying to create a datetime variable, for which the year and month are stored in two integer attributes. I can’t do dateTime($year, $month, 1, 0, 0, 0) as it needs literal integers (I assume an integer variable is not a literal integer). I seem to think parseDateTime is the way to go but having no luck
asked
1 answers
0

Something like : 

parseDateTime(toString($year)+'-’+toString($month)+'-1’,'yyyy-M-d’)

answered