Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

Additional Info

  • Level of Education
    High School Degree

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I have date in string format as e.g. "2015-05-12 15:15:24", I would like to convert it to sql date in the format "dd-MMM-yy". However, this is not working. Below is the code snippet: String rawDate="2015-05-12 15:15:24"; SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date =format.parse(rawDate); Date sqlDate = new java.sql.Date(date.getTime()); SimpleDateFormat changedFormat = new SimpleDateFormat("dd-MMM-yy"); Date date2=changedFormat.parse(changedFormat.format(sqlDate)); Date sqlDate2 = new java.sql.Date(date2.getTime()); System.out.println("sqlDate : "+sqlDate +" :::::: Date2 : "+date2+" :::: sqlDate2 "+sqlDate2);ow here is the Test : "+sqlDate2); The output of the program is : sqlDate : 2015-05-12 :::::: Date2 : Tue May 12 00:00:00 BST 2015 :::: sqlDate2 2015-05-12 The aim was to get date in the format of 12-May-15 java.sql format, but May is not being translated into alphabet month rather its printed as number.
  2. The Microsoft Azure Cloud and its services run in globally distributed data centers. Typically, customers have the choice of which data center they want their services and applications to run. Strict German or European data protection regulations and compliance guidelines may make it necessary to use data centers in Northern or Western Europe. On the one hand, they are geographically closer, allowing for shorter access and response times, and, on the other, compliant with European data policies. Especially for German users there is another solution in the form of a trust construct. It should meet the strong German privacy need. Access to the data hosted in German data centers (Magdeburg and Frankfurt am Main) is controlled by a data trustee, T-Systems. Although the two German data centers are part of the global Microsoft cloud infrastructure, it is nevertheless ensured that customer data is not transferred to a data center outside Germany. Another option for data control is not to store the user data in the Azure Cloud. Applications and computing power are available from the cloud, but data remains in the private cloudsaved. Microsoft Azure offers a total of approximately 50 compliance offerings to cover the variety of compliance requirements that exist worldwide. Azure is recognized by the US government as a trusted cloud.
  3. I as of late gave a go to React js and im beginning to like it. There is one rationale what I am screwed over thanks to. My site is multi-dialect and I have issues rendering the strings. So what I thought is to put an information make an interpretation of credit to the id's or classes yet does not fit right. This is only an essential case of my rationale React js var counter = document.getElementById('counter').getAttribute('data-translate'); var Timer = React.createClass({ getInitialState: function() { return {secondsElapsed: 0}; }, tick: function() { this.setState({secondsElapsed: this.state.secondsElapsed + 1}); }, componentDidMount: function() { this.interval = setInterval(this.tick, 1000); }, componentWillUnmount: function() { clearInterval(this.interval); }, render: function() { return ( <div className={this.translate}>{counter} {this.state.secondsElapsed}</div> ); } }); React.renderComponent( <Timer />, document.getElementById('counter') ); HTML <div id="counter" data-translate="{{ trans('stream.counter') }}"></div>