Display Date and Time of [PXDBDate] in single grid field - acumatica

How can I display both the Date and Time of a [PXDBDate] field (such as the CreatedDateTime audit field) in a single grid column?
Setting the TimeMode property to True displays only the Time, no longer the date.

Use the DisplayFormat editor control property and assign the desired .Net Framework standard date and time format string
A value of g will display both date and time.

Related

Prompt date in report with default today's date?

I am using relation SQL as a source for my query as below
select * from table where date = ?
what I need is when the user runs the report, it should prompt to date parameter. the default date should be the current date and there should be a calendar to select the date.
i am not using any universal here, so don't know what to do?
I think this is going to be as close as you can get.
select *
from table
where date = #Prompt('Enter Date:','D',,Mono,Free,Not_Persistent,,User:0)
Today's date is defaulted, but not selected. Be cautious with clicking on "Now". That will give you today's date with the current system time which is likely not what you want. You could convert your #Prompt function result to a datatype that does not include the time if you want users to be able to click "Now". In my opinion it is simple enough to instruct users to click the highlighted date for today's date.

NSPredicateEditor: filter for month in NSDate object

How can I filter a NSDate object by month with NSPredicateEditor ?
I have created a separate predicate editor row template for month.
Then Key Path is set to "myDate.month" and a right expression as numbers. That doesn't work, it tells that myDate.month is not KVO compliant. I have no idea how to use DateComponents in the key path either.
Of course, I could enrich my data model to an attribute "month" and then filter for it. But it is not very elegant and it means to maintain date and month for any updates at the same time..

Saved Search Date Results By Specified String in User Notes

I'm new to netsuite and I'm wondering if anyone has some insight about how to create a saved search for records using specified strings in user notes.
More specifically, say a user entered a note in a record on 8/28/2019 that said "things."
How do I return the date in the saved search when the user entered the string, "things"?
Edit: To clarify, I already have the search for records built out. I just want another column to be able to sort them by the date the string was entered.
On the Criteria tab:
Filter = User Notes : Memo (scroll down to the join fields where the labels all end in '...' and select 'User Notes Fields...', then select Memo from the popup list).
Operator = 'contains'
Value = 'things' (without quotes).
On the Results tab:
Field = User Notes : Date
Be aware that if there are multiple user notes with your search string under a single record, this will result in multiple results returned for the one record. You can work around this if desired by grouping the records by ID and setting an appropriate aggregating function for all the other fields that you want visible (for example, you can set the Summary Type for the User Notes : Date field to MIN or MAX, depending on whether you want to see the first or most recent date when that string was entered).
It will also mean you're filtering out any records where that string is not found.

Null and date format handling in talend

I have an excel with a date field but the first row in the excel is blank and few other rows are having a date format as MM/dd/yyyy HH:mm:ss.
The data to be loaded into a Postgresql table with the field of data type timestamp yyyy-mm-dd HH:mm:ss.
The excel cannot be modified as it is being downloaded from the cloud and the data is loaded straight away into the table.
I tried using tConvert type but it cannot accept null or " " values in timestamp. I am facing a Null tMap error during runtime in talend. Even if I try to convert from string to date format in order to pass null in tmap, it is changing the date format and showing error.How can this be handled ?
The talend structure is : tFileInputExcel - > TMAP(date field : MM/dd/yyyy HH:mm:ss) -> tConvertType(date field : yyyy-mm-dd HH:mm:ss) ->TMAP(yyyy-mm-dd HH:mm:ss) -> Postgresql Table
Here is the Excel screenshot:
At first, I do not quite understand why do you want to use tConvertType component. After defining a proper schema Talend is changing your data into Java Date object and from that moment format is not important and you don't have to convert it when you want to put it into Postgres table. At least it should not cause NullPointerException.
Consider following steps:
Sample input file
I've prepared some file with date value/space/empty string, solution I'm describing works also with nulls.
Configure tFileInputExcel component
You have to allow taking null values in by checking the Nullable check box. You should also check trim option.
Examine output
After connecting input component to tLogRow null/empty/space values are handled properly.
I hope this will be helpful.
You can capture date format or null handling in variable within tMAP component
that is
var :TalendDate.formatDate("yyyy-mm-dd HH:mm:ss",row1.columnname)
so data flow would be
tFileInputExcel --->tMAP --->Postgresql Table

Sharepoint Date and Time Field limitation

I created a Date and Time column in a Sharepoint list called EventDate. According to Microsoft documentation the Date and Time column maps to the System.DateTime type.
Now I'm seeing an error message when I try to insert the following date into that column:
Date: 1/1/1800
Error message:
"Invalid date/time value.
A date/time field contains invalid data. Please check the value and try again."
I also tried to use set DateTime.MinValue and I receive the same error message. But if I insert a more recent date like 1/1/1900 it works fine.
Does Sharepoint have a limitation of the minimum value of a Date and Time field?
I found out that if you try to insert the value 1/1/1800 in a Sharepoint Date and Time field manually (using Sharepoint forms) you receive this error:
"You must specify a valid date within the range of 1/1/1900 and 12/31/8900."
Therefore, Sharepoint only accepts values between 1/1/1900 and 12/31/8900.
There is no obvious reason as to why SharePoint limits the storage of the datetime datatype as it does now.
In SQL Server, the smalldatetime columns allows date in the range from 1/1/1900 - 6/6/2079 and the datetime columns are ranged 1/1/1753 - 12/31/9999
So there's no range from 1/1/1900 - 12/31/8900 and I haven't got the slightest idea why the limitation exists.
To make things even worse: SQL SErver 2008 has a smalldatetime2 and datetime2 type (the really just added a 2 to the name :/) wich allows any date (1/1/0000 - 12/31/9999) but even SharePoint 2010 on a SQL 2008 has the same limit
And Kit: using a single line of text is a very poor substitu, as there is no way to validate the values entered by the user
You could try creating a custom field to store the datetime value.
see http://msdn.microsoft.com/en-us/library/gg132914.aspx

Resources