Get current month in SharePoint 2013 search query - search

I am trying to show users with birthday in current month by Content Search Web Part.
Now my main problem is how to get current month in search query. I can get {Today}, but I need get month part of today for query on user profile property with user birthday month.
How I can get this?
Thank you!

check this link on technet, it seems it's a similar question as yours:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/c41c3991-66e3-4ef1-9309-f8d28e39aced/how-to-display-current-month-birthdays-list-using-sharepoint-2010-content-query-web-part?forum=sharepointgeneralprevious

Related

Calculate school year from date of birth in SharePoint

I am trying to calculate a school year from date of birth and would like SharePoint to update as and when necessary.
I know this is possible in Excel but wondered if there was a work around for Now or Today in SharePoint.
The code I am using is:
=IF([Date of Birth]="","","Year "&MAX(0,DATEDIF(DATE(YEAR([Date of Birth]+122),9,1),NOW(),"Y" )-4))
Any help would be greatly appreciated.
Sample forum to get year count between dates.
=VALUE(TEXT(NOW(),"yyyy"))-VALUE(TEXT([Date of Birth],"yyyy"))
if there was a work around for Now or Today in SharePoint.
Not by just using a Calculated Column. A Calculated column is only updated with the item is created or edited.
You can add JavaScript to the page to update the displayed school year each time a page loads, but you would need to add this to each of the list's forms and Views. The exact JavaScript solution depends on your SharePoint version. Can you update your question with the version? (2010, 2013, 2016, SharePoint Online - classic UI, SharePoint Online modern UI, etc.)

AgileCRM : Add Current day in compaing email

I am developing marketing campaign , I want to insert the day name in campaign. I Try to add date using custom field but it is not possible . Please suggest any solution
I didn't find any direct way to get current day in AgileCRM campaigns. However I can suggest using JSONIO node with URL http://www.convert-unix-time.com/api?date=now&timezone=vienna to get current date and time w.r.t timezone. You can use {{localDate}} as merge field wherever you need after JSONIO node.

Dynamics CRM FetchXML - Birthday is today

Is it possible using FetchXML to find out the Contacts who's birthday is for today? For example 4/1/2000, 4/1/2001, 4/1/2002?
I don't want to write custom code to do this if possible
Thanks in advance
Unfortunately that's not possible without additional coding... General approach is to add 2 fields - day of birth and month of birth, populate it during creation/update of a record and use mentioned fields after.
Have you tried
<condition attribute="birthdate" operator="today"/>
EDIT:
One way to accomplish this would be to create a recurring workflow job that runs a custom activity daily that sets an attribute to true for all the people whose birthday is today.
Another option might be to create a retrieve multiple plugin that changes the query criteria dynamically, but you might need to also include additional attribute(s) to just keep track of the month and day separately from the year.

How to get the Current Date & Time Automatically to a Date Time Field

I have created a date time field I made today's date as the default value, Then I added it to a page layout and created a page, But the current Date Time is not picking up from the system.
I dont want to give the user to select a Date Time instead it should populated automatically
Is there anyway to achieve this without writing code in code behind files?
This is very similar to this question I think
SO - How to get Date and current time from the Date/Time column in SharePoint Custom list
My answer there gives a few options such as using the built in Created field, using a calendar template, a JavaScript hack and a custom field type.
Guys, fake [Today] trick worked for us - but prob is we only got the date value not datetime.
Janis, is it possible to get date and time both from the fake [today] column trick? pls refer few articles on the same
Does [Today] work?
If you have language pack applied to SharePoint, then you must use localized "Today" string.

I Need to have a field where you can show an hour in Sharepoint 2007

I have a website in Sharepoint 2007. I need to create a page where I have a field where the user can enter an hour (22:00, for example). I will then make some CAML queries, asking to get the pages with the hour less or greater than a specific hour.
I know Sharepoint have the Datetimefield, but this one only shows the date, you cannot set the hour.
Some solution?
Thanks.
Maybe I'm missing something here.... But can't you just store the hour in a plain Int field data type and CAML query on that?

Resources