How to get a Timestamp that is 2 weeks ago?
Hi,
How to get a Timestamp that is 2 weeks before the current timestamp?
Using either Timestamp or java.sql.Date.
Thanks.
You don't use either of those to do calendar arithmetic. You use java.util.Calendar and GregorianCalendar instead. Here's a fragment that should get you started:Calendar c = new GregorianCalendar();
c.add(Calendar.DATE, -14);
Timestamp = new Timestamp(c.getTime().getTime());
Similar Messages
-
How to get modification timestamp of user in GAL
Hi,
Sorry for bothering you but I have one more question.
In general I have performance issue. I am downloading users from GAL with all details and it takes about 3h. GAL has about 17000 users. I didn't found any solution to make it faster.
But in next sync I would like to get data only for modified users but I don't know how to do it efficiently.
Now I will describe more details.
<pseudocode>
Foreach( var addressEntry in Application.Session.AddressLists[…].AddressEntries)
Var eu = addressEntry.GetExchangeUser()
Var props = addressEntry.PropertyAccessor.GetProperties(…)
LocalDb.SaveContact(addressentry, eu, props)
The most time expensive part is :
addressEntry.PropertyAccessor.GetProperties(…)
,it takes 2,5h. I would like in next “Download Process” download only modified entires but I don’t know how to get the timestamp efficiently. The timestamp is available using this:
addressEntry.PropertyAccessor.GetProperty(“http://schemas.microsoft.com/mapi/proptag/0x30080040“)
, but this is as slow as
addressEntry.PropertyAccessor.GetProperties(…)
, so there is no sense to check the timestamp and if it is old ask for properties.
Can I get the timestamp information in other way, more efficiently?Mots address book providers (GAL included) are not very good with restrictions.
GAL address book provider does not really do anything that you cannot do through the Active Directory interfaces. You should be able to run AD queries that use the "last modified time" attribute.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/redemption
Redemption - what the Outlook
Object Model should have been
Version 5.5 is now available! -
Can someone tell me how to get my apps that are on my ipad to appear on my TV using Apple Tv
Can someone tell me how to get my apps that are on my IPad to be viewed on my Apple TV?
Welcome to the Apple Community Coachcad.
Basic AirPlay: Assuming both devices are on the same network and that AirPlay is not turned off on the Apple TV, then simply tap on the screen when you are watching content you wish to stream to your Apple TV, then tap the airplay icon that appears in the control bar, choose the Apple TV from the menu that appears.
Mirroring: When displaying the content you wish to mirror on the iPad 2 (or better), iPad Mini, iPhone 4S (or better), swipe from the bottom of the screen, tap the AirPlay icon and choose your Apple TV from the list of devices (iOS 7 or better) or double tap the home button (quickly) and swipe the bottom row of apps to the right to reveal the playback controls, tap the AirPlay icon and select your Apple TV from the list of available devices (pre-iOS7) -
My old computer died on me with no warning signs. I didn't know or need to copy my music to another computer. I would like to know how to get the music that I bought onto my new computer without having to buy it all again. I just want to be able to get all of my music that I bought on itunes onto my computer. Right now the money ive spent is just gone and I have no music to show for it.
Go to the iTunes Store and select "Purchased" from the Quick Links side bar on the right. Go through all the tabs to download again for free
-
How to get a field that using variable in order to create a query
Hi,
I found a difficulty when creating a query. so, I would like to ask you some question.
1. How to get a field that using variable which that field I want to put it in my query?
For example, I would like to take quantity field in inventory audit report. And when I put my cursor in
quantity field, there was only variable, item, etc. How to get this and put it in query?
2. How to combined the invoice quantity with inventory audit report quantity?
3. I have a query like this:
SELECT distinct T0.[DocDate] as 'Tanggal', T0.[DocNum] as 'No.Faktur', T1.[ItemCode] as 'Kode Barang',
T1.[Dscription] as 'Deskripsi', T1.[Quantity] as 'Quantity', ((T1.[LineTotal])/(T1.[Quantity])) as 'Harga
Satuan', T1.[LineTotal] as 'Harga Total', T3.[CalcPrice] as 'HPP Satuan', ((T3.[CalcPrice]) * (T1.
[Quantity])) as 'HPP Total', T4.[ItmsGrpNam] as 'Jenis Barang', T5.[SlpName] as 'Nama Sales', T1.
[WhsCode] as 'Kode Gudang' FROM [dbo].[OINV] T0 INNER JOIN [dbo].[INV1] T1 ON T0.DocEntry =
T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OINM T3 ON T2.ItemCode
= T3.ItemCode INNER JOIN OITB T4 ON T2.ItmsGrpCod = T4.ItmsGrpCod INNER JOIN OSLP T5 ON
T0.SlpCode = T5.SlpCode WHERE T3.[TransType] = '13' and T3.[CreatedBy] = T1.[DocEntry] and T0.
[DocDate] >=[%0] and T0.[DocDate] <=[%1] and T4.[ItmsGrpNam] =[%2] and T1.[WhsCode] =[%3]
Is it possible if I just take one invoice with invoice quantity and only show up at once although I have a
lot item cost for that item? (because I'm using FIFOmethod).
Please help me.. cause I'm stuck with this thing :l.
Thank you very much, and I'm waiting your respon soon.
Regards,
SiscaTry this one:
SELECT distinct T0.DocDate as 'Tanggal', T0.DocNum as 'No.Faktur', T1.ItemCode as 'Kode Barang',
T1.Dscription as 'Deskripsi', T1.Quantity as 'Quantity', ((T1.LineTotal)/(T1.Quantity)) as 'Harga
Satuan', T1.LineTotal as 'Harga Total', T3.CalcPrice as 'HPP Satuan', ((T3.CalcPrice) * (T1.
Quantity)) as 'HPP Total', T4.ItmsGrpNam as 'Jenis Barang', T5.SlpName as 'Nama Sales', T1.
WhsCode as 'Kode Gudang'
FROM dbo.OINV T0 INNER JOIN dbo.INV1 T1 ON T0.DocEntry =T1.DocEntry
INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
INNER JOIN OINM T3 ON T2.ItemCode = T3.ItemCode AND T3.TransType = '13' and T3.CreatedBy = T1.DocEntry AND T3.Warehouse = T1.WhsCode
INNER JOIN OITB T4 ON T2.ItmsGrpCod = T4.ItmsGrpCod
INNER JOIN OSLP T5 ON T0.SlpCode = T5.SlpCode
WHERE T0.DocDate >=[%0\] and T0.DocDate <=[%1\] and T4.ItmsGrpNam =[%2\] and T1.WhsCode =[%3\]
Thanks,
Gordon -
How can I get the PDF file that was transformed into a docx file into my filing system to be able to work on it and translate it as the customer requested?
THanks for your reply.
Well what happens is I bought the program. It gives you a button to click,
you log in and then a box opens up asking you to select the file, I go into
my filing system (in Windows explorer) select the file, and the program
converts it into docx, my choice. I can read it there and when I try to
copy and paste it into my file where the PDF version is saved, it behaves
like an "image", and I can't save it.... or it saves likes something you
save on the internet, so you have to go into internet every time you want
to see it. I have also pressed any amount of buttons to see if it will
give me the option to save it any other way, and have found nothing. What
I would need is a file in docx.format that I can edit. People send me
things in PDF and sometimes I can just copy it off the PDF file and save it
in WOrd, then I can translate it for them. But sometimes the PDF file
doesnt allow me to copy the text. If it is in image form, I cannot work on
it. It means printing it, so I can copy type it into Word... and for that
I certainly wouldnt need to buy a program. Its just double the work and
ends up that the job takes twice as long.!
Sorry if I am a bit dumb with informatics. But I simply could not find
any way whatever to copy the PDF file that was transformed into Word, in a
format that would enable me to edit it.
Kindest regards,
Margery
2013/12/2 Test Screen Name <[email protected]>
Re: How to get PDF file that has been transformed into docx into my
filing system so I can work on it???
created by Test Screen Name<http://forums.adobe.com/people/TestScreenName>in *Adobe
ExportPDF* - View the full discussion<http://forums.adobe.com/message/5890871#5890871 -
PSE *.0-How To Get Rid of That Annoying Welcome Screen!!??
I thought I saw a post on how to get rid of that annoying "welcome" screen and all the ads when PSE opens but cannot find it.
Can someone point me in the right direction please?
I just want PSE to open into the Organizer upong clicking.
DanIn PSE 10 you can click on Settings on the welcome screen and choose your preference. In earlier versions it’s best to make a desktop shortcut.
Here’s how:
http://forums.adobe.com/thread/900437?tstart=60 -
I do not know how to get the music that I buy on itunes, on my mac, onto an ipod. I have already authorized my computer and "downloaded" my music, but that did not do anything, or provid the results that I was expecting, at least. Please, I really need to know how to do this on my own but I do not know what to do.Thank you in advance to anyone that is answering this question that I know most everyone but me knows how to accomplish. thanks!!!
In iTunes go to the Help menu in the upper menu bar. Then click on iTunes Help. Then on Sync your iPod, iPhone or iPad and follow the instructions.
-
I just got my iphone 5c ...went to the apps store and started a new id...its stuck on the privacy policy and i dont know how to get it off that ...please help
Hi Bam,
I am so ecstatic to hear that you are wanting to open an account in your name! We offer an Assumption of Liability that would allow you the current account holder to give permission for you assume liability of your number. Click here for information on how the process works http://vz.to/HverXe .
Thanks,
PamelaF_VZW
Tweet us @vzwsupport -
when I'm on an app, on iso7.1 it will now show the "iPad/iphone" sign - the time - and the battery whilst running in an app. does anyone know how to get rid of that as its effecting the games i play.
If you can hide the status bar, it would be an option inside the app. I have one or two apps where that is an option but in most apps it is not.
-
I will like to know how to get the money that i have in my itunes acc how to used it up to buy a cd with it
LatachaM_VZW wrote:
If the incorrect PIN code is entered too many times, a PIN Unlock Key must be obtained from Verizon Wireless at 908-559-4899 if you are outside of the United States and 800-922-0204 or *611(send) from your mobile number inside the United States..
The SIM PIN option is only available when the handset is in GSM / UMTS mode. Refer to Network Mode Setting for further assistance.
Thank you, LatachaM_VZW
Are you talking about the PUK code (when the PIN for the SIM has been wrong too many times)? The OP is talking about network unlock, and is using a foreign SIM. Global Services certainly wouldn't have the unlock code for a SIM that isn't theirs.
I have heard that if you do enter the incorrect network unlock code too many times, the phone becomes permanently locked (i..e cannot be unlocked even with a valid unlock code) but not everyone agrees that this is true for all phones.
Jax's post above really says it all, you will need to search the web for a service that will unlock this Motorola phone. In doing so, you might find a number of threads that say the Global has to be activated in the US before an unlock code will work. Others were able to unlock without this. -
I bought Smart Photo Converter which does not work but i can't get any refund , i have contacted the company but no reply and that was two weeks ago...so do you talk to someone at the App store?
Mac App Store Support -
http://www.apple.com/support/mac/app-store/ -
How to get all rows that are returned in inner sub query of select statemen
If a sub query in select statement returns more than one row than how to get all those returned rows in the final
output of the query .It will be all right if all column's value repeat and that multiple output of inner query comes
in another column .
How to get that ?As Frank said, you likely want a join, and likely an outer join to replicate the select in the projection. Something like:
SELECT id,stat, section, USER_ID concerned_person
FROM table_all,
left join table2
on room_id = sectoion and
sur_role = 'r001'
WHERE section IN (SELECT code
FROM t_area
WHERE dept= 'p002')An alternative, depending on where and how you are using the statement would be something like:
SQL> WITH t AS (
2 select 1 id from dual union all
3 select 2 id from dual),
4 t1 as (
5 select 1 id, 'One' descr from dual union all
6 select 1, 'Un' from dual union all
7 select 1, 'Une' from dual)
8 SELECT t.id, CURSOR(SELECT t1.id, t1.descr from t1
9 WHERE t1.id = t.id)
10 FROM t;
ID CURSOR(SELECTT1.ID,T
1 CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
ID DESCR
1 One
1 Un
1 Une
2 CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
no rows selectedJohn -
i just got my macbook pro a week ago and i was told that i will get the lion for free, if this is true, then how do i get it.
Hi,
Not that's not normal and is one of the Problems I was having before Restoring as New...
Just make sure you Sync ALL your important Info... Contacts... Music... Etc... to your Computer...
and then do a Restore as New...
i was a bit reluctant at First, because I hadn't done it before... But it was So Easy and am Really Glad I did...
Cheers,
Here's Another Useful Link:
http://www.apple.com/support/iphone/ -
Please help! How to get the report in SAP that include information of PR number, PR amount, PO number, PO amount and cost center in one report??
I try ME5A but th
ere are no information of PO amount.Thank you for your help.
I have no authorize to use SQVI as I am only the user. I will use your information and ask my SAP team to help.
Thank you again (^_^)
Maybe you are looking for
-
Can't open iPhoto after upgrade to 9.5
I installed the mavericks osx on macbook pro 2008. I then installed iphoto 9.5 from verson 7.1.5. I installed iphoto library ugrader and got a message it was "successful." When I now try to open iphoto I get these messages: "To open your library with
-
Frm-10221: Cannot read file ACTIV
Dear, while running a form this error message appears frm-10221: Cannot read file ACTIVhere ACTIV is the mmb file. i can add the attached library but i think this file is not working? Thanks in Advance. Stalin Ephraim
-
I'm having problems with my brand new Ipod Video. 1) After I charge my Ipod, I can't seem to turn it off. Even if I press the sleep option, it doesn't work. My only alternative wass to leave it for a while *to make the battery not full bar* before I
-
i have an ipad an a iphone im selling my ipad and wanna erase all the content but was wondering if i erase everything will it take that stuff ofmy phone to? i dont want to loss my photos
-
What is the use of the reference code they give you when you submit your Mac OS X ML Up to Date Program?