Get current date and current day

0
Hi guys, I am a beginner, I need to get currentdate and currentDay, If I use [%currentDateAndTime%] it comes along with time, I need only date and day, what to do for that? Thanks in Advance!
asked
2 answers
2

Hi Rishi,

Did you look into Parse & Format Date Function Calls? e.g. to get current date you can use formatDate([%CurrentDateTime%]).

 

Hope this helps!

answered
1

Use the various values at your disposal: [%BeginOfCurrentDay%] has the time set to midnight. There are others as well, most easily found in the microflow expression editor, when creating/changing variables or setting a value on an object. The TrimTo… functions help you to trim any date/time value to the desired value.

 

https://docs.mendix.com/refguide6/date-and-time-handling-in-3.0#tokens

https://docs.mendix.com/refguide/trim-to-date#1-introduction

answered