Skip to content

Tag: date

Get today coptic date

I’m looking to get coptic date of today with any code type like php or javascript to display coptic date to my site header. I need it in arabic or english. I have tried to find it, but didn’t found any thing like it in english. Reference: http://www.copticchurch.net/easter.html http://www.ortelius…

Moment.js and Unix Epoch Conversion

I have a web service that is returning a date as the following string: /Date(1377907200000)/ I use MomentJS to parse this to a moment object. moment(“/Date(1377907200000)/”) => Fri Aug 30 2013 20:00:00 GMT-0400 All of that is fine. But when I call unix() on the object I am given the value 13779…

bootstrap datepicker today as default

I am using this bootstrap-datepicker for my datepicker. I’d like the datepicker to choose “today” for start day or default day. I cannot figure out how to set “today” automatically, so I did an inefficient way HTML: JS: Online Sample: http://jsfiddle.net/BXZk2/ Just looking for a…

Get time difference between two dates in seconds

I’m trying to get a difference between two dates in seconds. The logic would be like this : set an initial date which would be now; set a final date which would be the initial date plus some amount of seconds in future ( let’s say 15 for instance ) get the difference between those two ( the amount…

Javascript Date – set just the date, ignoring time?

I have a bunch of objects, each of which has a timestamp, that I want to group by date, into a JSON object. The ultimate goal is something like this: To get the date, I’m testing each timestamp object and using: ..then I’m using that to store as a name for the JSON object. It seems messy, and I&#8…